Record Class Brain.Packed
java.lang.Object
java.lang.Record
net.minecraft.world.entity.ai.Brain.Packed
- Enclosing class:
Brain<E extends LivingEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Brain.Packed> static final Brain.Packedprivate final MemoryMapThe field for thememoriesrecord 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.memories()Returns the value of thememoriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
memories
The field for thememoriesrecord component. -
EMPTY
-
CODEC
-
-
Constructor Details
-
Packed
Creates an instance of aPackedrecord class.- Parameters:
memories- the value for thememoriesrecord component
-
-
Method Details
-
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). -
memories
Returns the value of thememoriesrecord component.- Returns:
- the value of the
memoriesrecord component
-