Package net.minecraft.predicate.entity
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 bh
intermediary net/minecraft/class_2050
named net/minecraft/predicate/entity/EntityTypePredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EntityTypePredicate.Single
(package private) static class
EntityTypePredicate.Tagged
-
Field Summary
Fields Modifier and Type Field Description static EntityTypePredicate
ANY
private static Joiner
COMMA_JOINER
-
Constructor Summary
Constructors Constructor Description EntityTypePredicate()
-
Method Summary
Modifier and Type Method Description static EntityTypePredicate
create(EntityType<?> type)
static EntityTypePredicate
create(Tag<EntityType<?>> tag)
static EntityTypePredicate
fromJson(JsonElement json)
abstract boolean
matches(EntityType<?> type)
abstract JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbh;a:Lbh;
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
- Mappings:
Namespace Name Mixin selector official b
Lbh;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
- Mappings:
Namespace Name Mixin selector official a
Lbh;a(Laqz;)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
- Mappings:
Namespace Name Mixin selector official a
Lbh;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
- Mappings:
Namespace Name Mixin selector official a
Lbh;a(Lcom/google/gson/JsonElement;)Lbh;
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
- Mappings:
Namespace Name Mixin selector official b
Lbh;b(Laqz;)Lbh;
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
- Mappings:
Namespace Name Mixin selector official a
Lbh;a(Lafc;)Lbh;
intermediary method_8926
Lnet/minecraft/class_2050;method_8926(Lnet/minecraft/class_3494;)Lnet/minecraft/class_2050;
named create
Lnet/minecraft/predicate/entity/EntityTypePredicate;create(Lnet/minecraft/tag/Tag;)Lnet/minecraft/predicate/entity/EntityTypePredicate;
-