Record Class MapUpdateS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.MapUpdateS2CPacket
- Record Components:
mapId
-scale
-locked
-decorations
-updateData
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record MapUpdateS2CPacket(MapIdComponent mapId, byte scale, boolean locked, Optional<List<MapDecoration>> decorations, Optional<MapState.UpdateData> updateData)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/MapUpdateS2CPacket
intermediary net/minecraft/class_2683
official adm
named mapId
intermediary comp_2270
official b
named scale
intermediary comp_2271
official c
named locked
intermediary comp_2272
official d
named decorations
intermediary comp_2273
official e
named updateData
intermediary comp_2274
official f
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, MapUpdateS2CPacket> private final Optional
<List<MapDecoration>> The field for thedecorations
record component.private final boolean
The field for thelocked
record component.private final MapIdComponent
The field for themapId
record component.private final byte
The field for thescale
record component.private final Optional
<MapState.UpdateData> The field for theupdateData
record component. -
Constructor Summary
ConstructorDescriptionMapUpdateS2CPacket
(MapIdComponent mapId, byte scale, boolean locked, @Nullable Collection<MapDecoration> decorations, MapState.UpdateData updateData) MapUpdateS2CPacket
(MapIdComponent mapIdComponent, byte byte2, boolean bool, Optional<List<MapDecoration>> optional, Optional<MapState.UpdateData> optional2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
apply
(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thedecorations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
locked()
Returns the value of thelocked
record component.mapId()
Returns the value of themapId
record component.byte
scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theupdateData
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
mapId
The field for themapId
record component. -
scale
private final byte scaleThe field for thescale
record component. -
locked
private final boolean lockedThe field for thelocked
record component. -
decorations
The field for thedecorations
record component. -
updateData
The field for theupdateData
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_47938
Lnet/minecraft/class_2683;field_47938:Lnet/minecraft/class_9139;
official a
Ladm;a:Lyx;
-
-
Constructor Details
-
MapUpdateS2CPacket
public MapUpdateS2CPacket(MapIdComponent mapId, byte scale, boolean locked, @Nullable @Nullable Collection<MapDecoration> decorations, @Nullable MapState.UpdateData updateData) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;<init>(Lnet/minecraft/component/type/MapIdComponent;BZLjava/util/Collection;Lnet/minecraft/item/map/MapState$UpdateData;)V
intermediary <init>
Lnet/minecraft/class_2683;<init>(Lnet/minecraft/class_9209;BZLjava/util/Collection;Lnet/minecraft/class_22$class_5637;)V
official <init>
Ladm;<init>(Leqr;BZLjava/util/Collection;Leqt$b;)V
-
MapUpdateS2CPacket
public MapUpdateS2CPacket(MapIdComponent mapIdComponent, byte byte2, boolean bool, Optional<List<MapDecoration>> optional, Optional<MapState.UpdateData> optional2)
-
-
Method Details
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Lzg;a()Lzi;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_11643
Lnet/minecraft/class_2683;method_11643(Lnet/minecraft/class_2602;)V
official a
Ladm;a(Labu;)V
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/item/map/MapState;)V
intermediary method_11642
Lnet/minecraft/class_2683;method_11642(Lnet/minecraft/class_22;)V
official a
Ladm;a(Leqt;)V
-
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 '=='. -
mapId
Returns the value of themapId
record component.- Returns:
- the value of the
mapId
record component
-
scale
public byte scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
locked
public boolean locked()Returns the value of thelocked
record component.- Returns:
- the value of the
locked
record component
-
decorations
Returns the value of thedecorations
record component.- Returns:
- the value of the
decorations
record component
-
updateData
Returns the value of theupdateData
record component.- Returns:
- the value of the
updateData
record component
-