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 chk$a
named pos
intermediary comp_2911
official b
named poiType
intermediary comp_2912
official c
named freeTickets
intermediary comp_2913
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PointOfInterest.Serialized> private final int
The field for thefreeTickets
record component.private final RegistryEntry
<PointOfInterestType> The field for thepoiType
record component.private final BlockPos
The field for thepos
record component. -
Constructor Summary
ConstructorDescriptionSerialized
(BlockPos blockPos, RegistryEntry<PointOfInterestType> registryEntry, int int2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefreeTickets
record component.final int
hashCode()
Returns a hash code value for this object.poiType()
Returns the value of thepoiType
record component.pos()
Returns the value of thepos
record component.toPointOfInterest
(Runnable updateListener) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pos
The field for thepos
record component. -
poiType
The field for thepoiType
record component. -
freeTickets
private final int freeTicketsThe field for thefreeTickets
record 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
Lchk$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
Lchk$a;a(Ljava/lang/Runnable;)Lchk;
-
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 thepos
record component.- Returns:
- the value of the
pos
record component
-
poiType
Returns the value of thepoiType
record component.- Returns:
- the value of the
poiType
record component
-
freeTickets
public int freeTickets()Returns the value of thefreeTickets
record component.- Returns:
- the value of the
freeTickets
record component
-