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
  • Field Details

    • ANY

      public static final EntityFlagsPredicate 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

      @Nullable private final Boolean 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

      @Nullable private final 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

      @Nullable private final 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

      @Nullable private final 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

      @Nullable private final 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

      public boolean test​(Entity entity)
      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

      @Nullable private static Boolean nullableBooleanFromJson​(JsonObject json, String key)
      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

      public static EntityFlagsPredicate fromJson​(@Nullable JsonElement json)
      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

      private void nullableBooleanToJson​(JsonObject json, String key, @Nullable Boolean value)
      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

      public JsonElement 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;