Record Class EntityFlagsPredicate

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.EntityFlagsPredicate
Record Components:
isOnGround -
isOnFire -
isSneaking -
isSprinting -
isSwimming -
isFlying -
isBaby -

public record EntityFlagsPredicate(Optional<Boolean> isOnGround, Optional<Boolean> isOnFire, Optional<Boolean> isSneaking, Optional<Boolean> isSprinting, Optional<Boolean> isSwimming, Optional<Boolean> isFlying, Optional<Boolean> isBaby) extends Record
Mappings:
Namespace Name
named net/minecraft/predicate/entity/EntityFlagsPredicate
intermediary net/minecraft/class_2040
official bu
named isOnGround
intermediary comp_2666
official b
named isOnFire
intermediary comp_1756
official c
named isSneaking
intermediary comp_1757
official d
named isSprinting
intermediary comp_1758
official e
named isSwimming
intermediary comp_1759
official f
named isFlying
intermediary comp_2667
official g
named isBaby
intermediary comp_1760
official h
  • Field Details

    • isOnGround

      private final Optional<Boolean> isOnGround
      The field for the isOnGround record component.
    • isOnFire

      private final Optional<Boolean> isOnFire
      The field for the isOnFire record component.
    • isSneaking

      private final Optional<Boolean> isSneaking
      The field for the isSneaking record component.
    • isSprinting

      private final Optional<Boolean> isSprinting
      The field for the isSprinting record component.
    • isSwimming

      private final Optional<Boolean> isSwimming
      The field for the isSwimming record component.
    • isFlying

      private final Optional<Boolean> isFlying
      The field for the isFlying record component.
    • isBaby

      private final Optional<Boolean> isBaby
      The field for the isBaby record component.
    • CODEC

      public static final com.mojang.serialization.Codec<EntityFlagsPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/entity/EntityFlagsPredicate;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45745 Lnet/minecraft/class_2040;field_45745:Lcom/mojang/serialization/Codec;
      official a Lbu;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • test

      public boolean test(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/entity/EntityFlagsPredicate;test(Lnet/minecraft/entity/Entity;)Z
      intermediary method_8892 Lnet/minecraft/class_2040;method_8892(Lnet/minecraft/class_1297;)Z
      official a Lbu;a(Lbvj;)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • isOnGround

      public Optional<Boolean> isOnGround()
      Returns the value of the isOnGround record component.
      Returns:
      the value of the isOnGround record component
    • isOnFire

      public Optional<Boolean> isOnFire()
      Returns the value of the isOnFire record component.
      Returns:
      the value of the isOnFire record component
    • isSneaking

      public Optional<Boolean> isSneaking()
      Returns the value of the isSneaking record component.
      Returns:
      the value of the isSneaking record component
    • isSprinting

      public Optional<Boolean> isSprinting()
      Returns the value of the isSprinting record component.
      Returns:
      the value of the isSprinting record component
    • isSwimming

      public Optional<Boolean> isSwimming()
      Returns the value of the isSwimming record component.
      Returns:
      the value of the isSwimming record component
    • isFlying

      public Optional<Boolean> isFlying()
      Returns the value of the isFlying record component.
      Returns:
      the value of the isFlying record component
    • isBaby

      public Optional<Boolean> isBaby()
      Returns the value of the isBaby record component.
      Returns:
      the value of the isBaby record component