Record Class CubeMobPredicate
java.lang.Object
java.lang.Record
net.minecraft.advancements.predicates.entity.CubeMobPredicate
- All Implemented Interfaces:
EntitySubPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CubeMobPredicate> private final MinMaxBounds.IntsThe field for thesizerecord component.Fields inherited from interface EntitySubPredicate
ALWAYS_TRUE -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aCubeMobPredicaterecord 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.booleanmatches(Entity entity, ServerLevel level, @Nullable Vec3 position) size()Returns the value of thesizerecord component.static CubeMobPredicatesized(MinMaxBounds.Ints size) final StringtoString()Returns a string representation of this record class.Methods inherited from interface EntitySubPredicate
and
-
Field Details
-
size
The field for thesizerecord component. -
CODEC
-
-
Constructor Details
-
CubeMobPredicate
Creates an instance of aCubeMobPredicaterecord class.- Parameters:
size- the value for thesizerecord component
-
-
Method Details
-
sized
-
matches
- Specified by:
matchesin interfaceEntitySubPredicate
-
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). -
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-