Record Class EntityFlagsPredicate
java.lang.Object
java.lang.Record
net.minecraft.advancements.criterion.EntityFlagsPredicate
public record EntityFlagsPredicate(Optional<Boolean> isOnGround, Optional<Boolean> isOnFire, Optional<Boolean> isCrouching, Optional<Boolean> isSprinting, Optional<Boolean> isSwimming, Optional<Boolean> isFlying, Optional<Boolean> isBaby, Optional<Boolean> isInWater, Optional<Boolean> isFallFlying)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityFlagsPredicate> The field for theisBabyrecord component.The field for theisCrouchingrecord component.The field for theisFallFlyingrecord component.The field for theisFlyingrecord component.The field for theisInWaterrecord component.The field for theisOnFirerecord component.The field for theisOnGroundrecord component.The field for theisSprintingrecord component.The field for theisSwimmingrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityFlagsPredicate(Optional<Boolean> isOnGround, Optional<Boolean> isOnFire, Optional<Boolean> isCrouching, Optional<Boolean> isSprinting, Optional<Boolean> isSwimming, Optional<Boolean> isFlying, Optional<Boolean> isBaby, Optional<Boolean> isInWater, Optional<Boolean> isFallFlying) Creates an instance of aEntityFlagsPredicaterecord class. -
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.Returns the value of theisCrouchingrecord component.Returns the value of theisFallFlyingrecord component.isFlying()Returns the value of theisFlyingrecord component.Returns the value of theisInWaterrecord component.isOnFire()Returns the value of theisOnFirerecord component.Returns the value of theisOnGroundrecord 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
-
isOnFire
-
isCrouching
-
isSprinting
-
isSwimming
-
isFlying
-
isBaby
-
isInWater
-
isFallFlying
-
CODEC
-
-
Constructor Details
-
EntityFlagsPredicate
public EntityFlagsPredicate(Optional<Boolean> isOnGround, Optional<Boolean> isOnFire, Optional<Boolean> isCrouching, Optional<Boolean> isSprinting, Optional<Boolean> isSwimming, Optional<Boolean> isFlying, Optional<Boolean> isBaby, Optional<Boolean> isInWater, Optional<Boolean> isFallFlying) Creates an instance of aEntityFlagsPredicaterecord class.- Parameters:
isOnGround- the value for theisOnGroundrecord componentisOnFire- the value for theisOnFirerecord componentisCrouching- the value for theisCrouchingrecord componentisSprinting- the value for theisSprintingrecord componentisSwimming- the value for theisSwimmingrecord componentisFlying- the value for theisFlyingrecord componentisBaby- the value for theisBabyrecord componentisInWater- the value for theisInWaterrecord componentisFallFlying- the value for theisFallFlyingrecord component
-
-
Method Details
-
matches
-
toString
-
hashCode
-
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
-
isOnFire
-
isCrouching
-
isSprinting
-
isSwimming
-
isFlying
-
isBaby
-
isInWater
-
isFallFlying
-