Record Class DebugGameEventListenersCustomPayload
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.custom.DebugGameEventListenersCustomPayload
- Record Components:
listenerPos-listenerRange-
- All Implemented Interfaces:
CustomPayload
public record DebugGameEventListenersCustomPayload(PositionSource listenerPos, int listenerRange)
extends Record
implements CustomPayload
- Mappings:
Namespace Name official zbintermediary net/minecraft/class_8713named net/minecraft/network/packet/s2c/custom/DebugGameEventListenersCustomPayloadofficial cintermediary comp_1681named listenerPosofficial dintermediary comp_1682named listenerRange
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.packet.CustomPayload
CustomPayload.CodecFactory<B extends PacketByteBuf>, CustomPayload.Id<T extends CustomPayload>, CustomPayload.Type<B extends PacketByteBuf,T extends CustomPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PositionSourceThe field for thelistenerPosrecord component.private final intThe field for thelistenerRangerecord component.static final PacketCodec<RegistryByteBuf,DebugGameEventListenersCustomPayload> static final CustomPayload.Id<DebugGameEventListenersCustomPayload> -
Constructor Summary
ConstructorsConstructorDescriptionDebugGameEventListenersCustomPayload(PositionSource positionSource, int int2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getId()final inthashCode()Returns a hash code value for this object.Returns the value of thelistenerPosrecord component.intReturns the value of thelistenerRangerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
listenerPos
The field for thelistenerPosrecord component. -
listenerRange
private final int listenerRangeThe field for thelistenerRangerecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official aLzb;a:Lxo;intermediary field_48662Lnet/minecraft/class_8713;field_48662:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/network/packet/s2c/custom/DebugGameEventListenersCustomPayload;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
PAYLOAD_TYPE
- Mappings:
Namespace Name Mixin selector official bLzb;b:Lyy$b;intermediary field_48663Lnet/minecraft/class_8713;field_48663:Lnet/minecraft/class_8710$class_9154;named PAYLOAD_TYPELnet/minecraft/network/packet/s2c/custom/DebugGameEventListenersCustomPayload;PAYLOAD_TYPE:Lnet/minecraft/network/packet/CustomPayload$Id;
-
-
Constructor Details
-
DebugGameEventListenersCustomPayload
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceCustomPayload- Mappings:
Namespace Name Mixin selector official aLyy;a()Lyy$b;intermediary method_56479Lnet/minecraft/class_8710;method_56479()Lnet/minecraft/class_8710$class_9154;named getIdLnet/minecraft/network/packet/CustomPayload;getId()Lnet/minecraft/network/packet/CustomPayload$Id;
-
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 '=='. -
listenerPos
Returns the value of thelistenerPosrecord component.- Returns:
- the value of the
listenerPosrecord component
-
listenerRange
public int listenerRange()Returns the value of thelistenerRangerecord component.- Returns:
- the value of the
listenerRangerecord component
-