Class EntityTypePredicate

java.lang.Object
net.minecraft.predicate.entity.EntityTypePredicate
Direct Known Subclasses:
EntityTypePredicate.Single, EntityTypePredicate.Tagged

public abstract class EntityTypePredicate extends Object
Mappings:
Namespace Name
official bq
intermediary net/minecraft/class_2050
named net/minecraft/predicate/entity/EntityTypePredicate
  • Field Details

    • ANY

      public static final EntityTypePredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a:Lbq;
      intermediary field_9609 Lnet/minecraft/class_2050;field_9609:Lnet/minecraft/class_2050;
      named ANY Lnet/minecraft/predicate/entity/EntityTypePredicate;ANY:Lnet/minecraft/predicate/entity/EntityTypePredicate;
    • COMMA_JOINER

      private static final Joiner COMMA_JOINER
      Mappings:
      Namespace Name Mixin selector
      official b Lbq;b:Lcom/google/common/base/Joiner;
      intermediary field_9608 Lnet/minecraft/class_2050;field_9608:Lcom/google/common/base/Joiner;
      named COMMA_JOINER Lnet/minecraft/predicate/entity/EntityTypePredicate;COMMA_JOINER:Lcom/google/common/base/Joiner;
  • Constructor Details

    • EntityTypePredicate

      public EntityTypePredicate()
  • Method Details

    • matches

      public abstract boolean matches(EntityType<?> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lbbr;)Z
      intermediary method_8925 Lnet/minecraft/class_2050;method_8925(Lnet/minecraft/class_1299;)Z
      named matches Lnet/minecraft/predicate/entity/EntityTypePredicate;matches(Lnet/minecraft/entity/EntityType;)Z
    • toJson

      public abstract JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a()Lcom/google/gson/JsonElement;
      intermediary method_8927 Lnet/minecraft/class_2050;method_8927()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/EntityTypePredicate;toJson()Lcom/google/gson/JsonElement;
    • fromJson

      public static EntityTypePredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lcom/google/gson/JsonElement;)Lbq;
      intermediary method_8928 Lnet/minecraft/class_2050;method_8928(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2050;
      named fromJson Lnet/minecraft/predicate/entity/EntityTypePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/EntityTypePredicate;
    • create

      public static EntityTypePredicate create(EntityType<?> type)
      Mappings:
      Namespace Name Mixin selector
      official b Lbq;b(Lbbr;)Lbq;
      intermediary method_8929 Lnet/minecraft/class_2050;method_8929(Lnet/minecraft/class_1299;)Lnet/minecraft/class_2050;
      named create Lnet/minecraft/predicate/entity/EntityTypePredicate;create(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/predicate/entity/EntityTypePredicate;
    • create

      public static EntityTypePredicate create(TagKey<EntityType<?>> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq;a(Lakz;)Lbq;
      intermediary method_8926 Lnet/minecraft/class_2050;method_8926(Lnet/minecraft/class_6862;)Lnet/minecraft/class_2050;
      named create Lnet/minecraft/predicate/entity/EntityTypePredicate;create(Lnet/minecraft/tag/TagKey;)Lnet/minecraft/predicate/entity/EntityTypePredicate;