Package net.minecraft.world.poi
Record Class PointOfInterest.Serialized
java.lang.Object
java.lang.Record
net.minecraft.world.poi.PointOfInterest.Serialized
- Record Components:
- pos-
- poiType-
- freeTickets-
- Enclosing class:
- PointOfInterest
public static record PointOfInterest.Serialized(BlockPos pos, RegistryEntry<PointOfInterestType> poiType, int freeTickets)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/world/poi/PointOfInterest$Serialized- intermediary - net/minecraft/class_4156$class_9864- official - cgn$a- named - pos- intermediary - comp_2911- official - b- named - poiType- intermediary - comp_2912- official - c- named - freeTickets- intermediary - comp_2913- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PointOfInterest.Serialized> private final intThe field for thefreeTicketsrecord component.private final RegistryEntry<PointOfInterestType> The field for thepoiTyperecord component.private final BlockPosThe field for theposrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSerialized(BlockPos blockPos, RegistryEntry<PointOfInterestType> registryEntry, int int2) 
- 
Method SummaryModifier 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.toPointOfInterest(Runnable updateListener) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
posThe field for theposrecord component.
- 
poiTypeThe field for thepoiTyperecord component.
- 
freeTicketsprivate final int freeTicketsThe field for thefreeTicketsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/poi/PointOfInterest$Serialized;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_52452- Lnet/minecraft/class_4156$class_9864;field_52452:Lcom/mojang/serialization/Codec;- official - a- Lcgn$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Serialized
 
- 
- 
Method Details- 
toPointOfInterest- Mappings:
- Namespace - Name - Mixin selector - named - toPointOfInterest- Lnet/minecraft/world/poi/PointOfInterest$Serialized;toPointOfInterest(Ljava/lang/Runnable;)Lnet/minecraft/world/poi/PointOfInterest;- intermediary - method_61450- Lnet/minecraft/class_4156$class_9864;method_61450(Ljava/lang/Runnable;)Lnet/minecraft/class_4156;- official - a- Lcgn$a;a(Ljava/lang/Runnable;)Lcgn;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
poiTypeReturns the value of thepoiTyperecord component.- Returns:
- the value of the poiTyperecord component
 
- 
freeTicketspublic int freeTickets()Returns the value of thefreeTicketsrecord component.- Returns:
- the value of the freeTicketsrecord component
 
 
-