EntityFlagsPredicate
Represents the predicate for an MCEntity's status flags.
The status flags indicate whether the entity is currently burning, moving and at which speed, and whether it's a baby or an adult, for the entities that have a baby form.
By default, the entity passes the check no matter what its status flags are.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Extending AnyDefaultingVanillaWrappingPredicate
EntityFlagsPredicate extends AnyDefaultingVanillaWrappingPredicate. That means all methods available in AnyDefaultingVanillaWrappingPredicate are also available in EntityFlagsPredicate
Methods
withAdult
Indicates that the entity must be in its adult form.
If the predicate has already been set to check for the entity in its baby form, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withBaby
Indicates that the entity must be in its baby form, if applicable.
If the predicate has already been set to check for the entity in its adult form, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withBurningState
Indicates that the entity must be on fire.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withSneakingState
Indicates that the entity must be sneaking, if applicable to the current entity.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withSprintingState
Indicates that the entity must be sprinting, if applicable to the current entity.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withSwimmingState
Indicates that the entity must be swimming.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withoutBurningState
Indicates that the entity must not be on fire.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withoutSneakingState
Indicates that the entity must not be sneaking.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withoutSprintingState
Indicates that the entity must not be sprinting.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate
withoutSwimmingState
Indicates that the entity must not be swimming.
If the predicate had already been set to check the opposite condition, the setting will be overwritten.
Return Type: EntityFlagsPredicate