Package net.minecraft.world.debug.data
Record Class PoiDebugData
java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.PoiDebugData
- Record Components:
pos-poiType-freeTicketCount-
public record PoiDebugData(BlockPos pos, RegistryEntry<PointOfInterestType> poiType, int freeTicketCount)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/debug/data/PoiDebugDataintermediary net/minecraft/class_12014official bvqnamed posintermediary comp_4864official bnamed poiTypeintermediary comp_4865official cnamed freeTicketCountintermediary comp_4866official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefreeTicketCountrecord component.static final PacketCodec<RegistryByteBuf, PoiDebugData> private final RegistryEntry<PointOfInterestType> The field for thepoiTyperecord component.private final BlockPosThe field for theposrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPoiDebugData(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 thefreeTicketCountrecord 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
The field for thepoiTyperecord component. -
freeTicketCount
private final int freeTicketCountThe field for thefreeTicketCountrecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/debug/data/PoiDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62861Lnet/minecraft/class_12014;field_62861:Lnet/minecraft/class_9139;official aLbvq;a:Laae;
-
-
Constructor Details
-
PoiDebugData
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/debug/data/PoiDebugData;<init>(Lnet/minecraft/world/poi/PointOfInterest;)Vintermediary <init>Lnet/minecraft/class_12014;<init>(Lnet/minecraft/class_4156;)Vofficial <init>Lbvq;<init>(Lcqd;)V
-
PoiDebugData
-
-
Method Details
-
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
-
freeTicketCount
public int freeTicketCount()Returns the value of thefreeTicketCountrecord component.- Returns:
- the value of the
freeTicketCountrecord component
-