yarn/mappings/net/minecraft/util/TypeFilter.mapping

11 lines
639 B
Plaintext

CLASS net/minecraft/class_5575 net/minecraft/util/TypeFilter
COMMENT A filter determines if an object of some supertype {@code B} can be treated as an object
COMMENT of some subtype {@code T}.
METHOD method_31794 getBaseClass ()Ljava/lang/Class;
METHOD method_31795 forClass (Ljava/lang/Class;)Lnet/minecraft/class_5575;
COMMENT Creates a filter whose filtering condition is whether the object is an instance of the given class.
ARG 0 cls
METHOD method_31796 downcast (Ljava/lang/Object;)Ljava/lang/Object;
COMMENT If the argument can be converted to the type {@code T}, return the argument, otherwise {@code null}.
ARG 1 obj