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$Serializedintermediary net/minecraft/class_4156$class_9864official cji$anamed posintermediary comp_2911official bnamed poiTypeintermediary comp_2912official cnamed freeTicketsintermediary comp_2913official d
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionSerialized(BlockPos blockPos, RegistryEntry<PointOfInterestType> registryEntry, int int2) -
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.toPointOfInterest(Runnable updateListener) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
poiType
The field for thepoiTyperecord component. -
freeTickets
private final int freeTicketsThe field for thefreeTicketsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/poi/PointOfInterest$Serialized;CODEC:Lcom/mojang/serialization/Codec;intermediary field_52452Lnet/minecraft/class_4156$class_9864;field_52452:Lcom/mojang/serialization/Codec;official aLcji$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Serialized
-
-
Method Details
-
toPointOfInterest
- Mappings:
Namespace Name Mixin selector named toPointOfInterestLnet/minecraft/world/poi/PointOfInterest$Serialized;toPointOfInterest(Ljava/lang/Runnable;)Lnet/minecraft/world/poi/PointOfInterest;intermediary method_61450Lnet/minecraft/class_4156$class_9864;method_61450(Ljava/lang/Runnable;)Lnet/minecraft/class_4156;official aLcji$a;a(Ljava/lang/Runnable;)Lcji;
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
poiType
Returns the value of thepoiTyperecord component.- Returns:
- the value of the
poiTyperecord component
-
freeTickets
public int freeTickets()Returns the value of thefreeTicketsrecord component.- Returns:
- the value of the
freeTicketsrecord component
-