Package net.minecraft.predicate.entity
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/EntityFlagsPredicateintermediary net/minecraft/class_2040official btnamed isOnGroundintermediary comp_2666official bnamed isOnFireintermediary comp_1756official cnamed isSneakingintermediary comp_1757official dnamed isSprintingintermediary comp_1758official enamed isSwimmingintermediary comp_1759official fnamed isFlyingintermediary comp_2667official gnamed isBabyintermediary comp_1760official h
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityFlagsPredicate> The field for theisBabyrecord component.The field for theisFlyingrecord component.The field for theisOnFirerecord component.The field for theisOnGroundrecord component.The field for theisSneakingrecord component.The field for theisSprintingrecord component.The field for theisSwimmingrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.isBaby()Returns the value of theisBabyrecord component.isFlying()Returns the value of theisFlyingrecord component.isOnFire()Returns the value of theisOnFirerecord component.Returns the value of theisOnGroundrecord component.Returns the value of theisSneakingrecord component.Returns the value of theisSprintingrecord component.Returns the value of theisSwimmingrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
isOnGround
The field for theisOnGroundrecord component. -
isOnFire
The field for theisOnFirerecord component. -
isSneaking
The field for theisSneakingrecord component. -
isSprinting
The field for theisSprintingrecord component. -
isSwimming
The field for theisSwimmingrecord component. -
isFlying
The field for theisFlyingrecord component. -
isBaby
The field for theisBabyrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/EntityFlagsPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45745Lnet/minecraft/class_2040;field_45745:Lcom/mojang/serialization/Codec;official aLbt;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EntityFlagsPredicate
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityFlagsPredicate;test(Lnet/minecraft/entity/Entity;)Zintermediary method_8892Lnet/minecraft/class_2040;method_8892(Lnet/minecraft/class_1297;)Zofficial aLbt;a(Lbsr;)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
isOnGround
Returns the value of theisOnGroundrecord component.- Returns:
- the value of the
isOnGroundrecord component
-
isOnFire
Returns the value of theisOnFirerecord component.- Returns:
- the value of the
isOnFirerecord component
-
isSneaking
Returns the value of theisSneakingrecord component.- Returns:
- the value of the
isSneakingrecord component
-
isSprinting
Returns the value of theisSprintingrecord component.- Returns:
- the value of the
isSprintingrecord component
-
isSwimming
Returns the value of theisSwimmingrecord component.- Returns:
- the value of the
isSwimmingrecord component
-
isFlying
Returns the value of theisFlyingrecord component.- Returns:
- the value of the
isFlyingrecord component
-
isBaby
Returns the value of theisBabyrecord component.- Returns:
- the value of the
isBabyrecord component
-