Class EntityFlagsPredicate

java.lang.Object
net.minecraft.predicate.entity.EntityFlagsPredicate

public class EntityFlagsPredicate extends Object
Mappings:
Namespace Name
official bm
intermediary net/minecraft/class_2040
named net/minecraft/predicate/entity/EntityFlagsPredicate
  • Field Details

    • ANY

      public static final EntityFlagsPredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;a:Lbm;
      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

      @Nullable private final @Nullable Boolean isOnFire
      Mappings:
      Namespace Name Mixin selector
      official b Lbm;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

      @Nullable private final @Nullable Boolean isSneaking
      Mappings:
      Namespace Name Mixin selector
      official c Lbm;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

      @Nullable private final @Nullable Boolean isSprinting
      Mappings:
      Namespace Name Mixin selector
      official d Lbm;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

      @Nullable private final @Nullable Boolean isSwimming
      Mappings:
      Namespace Name Mixin selector
      official e Lbm;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

      @Nullable private final @Nullable Boolean isBaby
      Mappings:
      Namespace Name Mixin selector
      official f Lbm;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 @Nullable Boolean isOnFire, @Nullable @Nullable Boolean isSneaking, @Nullable @Nullable Boolean isSprinting, @Nullable @Nullable Boolean isSwimming, @Nullable @Nullable Boolean isBaby)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbm;<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

      public boolean test(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;a(Lawm;)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

      @Nullable private static @Nullable Boolean nullableBooleanFromJson(JsonObject json, String key)
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;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

      public static EntityFlagsPredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;a(Lcom/google/gson/JsonElement;)Lbm;
      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

      private void nullableBooleanToJson(JsonObject json, String key, @Nullable @Nullable Boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;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

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbm;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;