Package net.minecraft.predicate.entity
Class EntityFlagsPredicate
java.lang.Object
net.minecraft.predicate.entity.EntityFlagsPredicate
public class EntityFlagsPredicate extends Object
- Mappings:
Namespace Name official be
intermediary net/minecraft/class_2040
named net/minecraft/predicate/entity/EntityFlagsPredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityFlagsPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static EntityFlagsPredicate
ANY
private Boolean
isBaby
private Boolean
isOnFire
private Boolean
isSneaking
private Boolean
isSprinting
private Boolean
isSwimming
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static EntityFlagsPredicate
fromJson(JsonElement json)
private static Boolean
nullableBooleanFromJson(JsonObject json, String key)
private void
nullableBooleanToJson(JsonObject json, String key, Boolean value)
boolean
test(Entity entity)
JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbe;a:Lbe;
intermediary field_9581
Lnet/minecraft/class_2040;field_9581:Lnet/minecraft/class_2040;
named ANY
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;ANY:Lnet/minecraft/predicate/entity/EntityFlagsPredicate;
-
isOnFire
- Mappings:
Namespace Name Mixin selector official b
Lbe;b:Ljava/lang/Boolean;
intermediary field_9580
Lnet/minecraft/class_2040;field_9580:Ljava/lang/Boolean;
named isOnFire
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;isOnFire:Ljava/lang/Boolean;
-
isSneaking
- Mappings:
Namespace Name Mixin selector official c
Lbe;c:Ljava/lang/Boolean;
intermediary field_9582
Lnet/minecraft/class_2040;field_9582:Ljava/lang/Boolean;
named isSneaking
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;isSneaking:Ljava/lang/Boolean;
-
isSprinting
- Mappings:
Namespace Name Mixin selector official d
Lbe;d:Ljava/lang/Boolean;
intermediary field_9579
Lnet/minecraft/class_2040;field_9579:Ljava/lang/Boolean;
named isSprinting
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;isSprinting:Ljava/lang/Boolean;
-
isSwimming
- Mappings:
Namespace Name Mixin selector official e
Lbe;e:Ljava/lang/Boolean;
intermediary field_9578
Lnet/minecraft/class_2040;field_9578:Ljava/lang/Boolean;
named isSwimming
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;isSwimming:Ljava/lang/Boolean;
-
isBaby
- Mappings:
Namespace Name Mixin selector official f
Lbe;f:Ljava/lang/Boolean;
intermediary field_9583
Lnet/minecraft/class_2040;field_9583:Ljava/lang/Boolean;
named isBaby
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;isBaby:Ljava/lang/Boolean;
-
-
Constructor Details
-
EntityFlagsPredicate
public EntityFlagsPredicate(@Nullable Boolean isOnFire, @Nullable Boolean isSneaking, @Nullable Boolean isSprinting, @Nullable Boolean isSwimming, @Nullable Boolean isBaby)- Mappings:
Namespace Name Mixin selector official <init>
Lbe;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
intermediary <init>
Lnet/minecraft/class_2040;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
named <init>
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbe;a(Laqv;)Z
intermediary method_8892
Lnet/minecraft/class_2040;method_8892(Lnet/minecraft/class_1297;)Z
named test
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;test(Lnet/minecraft/entity/Entity;)Z
-
nullableBooleanFromJson
- Mappings:
Namespace Name Mixin selector official a
Lbe;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
intermediary method_8895
Lnet/minecraft/class_2040;method_8895(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
named nullableBooleanFromJson
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;nullableBooleanFromJson(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lbe;a(Lcom/google/gson/JsonElement;)Lbe;
intermediary method_8893
Lnet/minecraft/class_2040;method_8893(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2040;
named fromJson
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/EntityFlagsPredicate;
-
nullableBooleanToJson
- Mappings:
Namespace Name Mixin selector official a
Lbe;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
intermediary method_8896
Lnet/minecraft/class_2040;method_8896(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
named nullableBooleanToJson
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;nullableBooleanToJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lbe;a()Lcom/google/gson/JsonElement;
intermediary method_8894
Lnet/minecraft/class_2040;method_8894()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/entity/EntityFlagsPredicate;toJson()Lcom/google/gson/JsonElement;
-