Record Class PoiRecord.Packed
java.lang.Object
java.lang.Record
net.minecraft.world.entity.ai.village.poi.PoiRecord.Packed
- Enclosing class:
PoiRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PoiRecord.Packed> private final intThe field for thefreeTicketsrecord component.The field for thepoiTyperecord component.private final BlockPosThe field for theposrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefreeTicketsrecord component.final inthashCode()Returns a hash code value for this object.poiType()Returns the value of thepoiTyperecord component.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
poiType
-
freeTickets
private final int freeTicketsThe field for thefreeTicketsrecord component. -
CODEC
-
-
Constructor Details
-
Packed
-
-
Method Details
-
unpack
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
poiType
-
freeTickets
public int freeTickets()Returns the value of thefreeTicketsrecord component.- Returns:
- the value of the
freeTicketsrecord component
-