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 - ade- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, MapUpdateS2CPacket> private final Optional<List<MapDecoration>> The field for thedecorationsrecord component.private final booleanThe field for thelockedrecord component.private final MapIdComponentThe field for themapIdrecord component.private final byteThe field for thescalerecord component.private final Optional<MapState.UpdateData> The field for theupdateDatarecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMapUpdateS2CPacket(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 SummaryModifier and TypeMethodDescriptionvoidvoidapply(ClientPlayPacketListener clientPlayPacketListener) Returns the value of thedecorationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlocked()Returns the value of thelockedrecord component.mapId()Returns the value of themapIdrecord component.bytescale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateDatarecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
mapIdThe field for themapIdrecord component.
- 
scaleprivate final byte scaleThe field for thescalerecord component.
- 
lockedprivate final boolean lockedThe field for thelockedrecord component.
- 
decorationsThe field for thedecorationsrecord component.
- 
updateDataThe field for theupdateDatarecord 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- Lade;a:Lyn;
 
 
- 
- 
Constructor Details- 
MapUpdateS2CPacketpublic 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>- Lade;<init>(Leus;BZLjava/util/Collection;Leuu$c;)V
 
- 
MapUpdateS2CPacketpublic MapUpdateS2CPacket(MapIdComponent mapIdComponent, byte byte2, boolean bool, Optional<List<MapDecoration>> optional, Optional<MapState.UpdateData> optional2) 
 
- 
- 
Method Details- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin interface- Packet<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- Lade;a(Labl;)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- Lade;a(Leuu;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
mapIdReturns the value of themapIdrecord component.- Returns:
- the value of the mapIdrecord component
 
- 
scalepublic byte scale()Returns the value of thescalerecord component.- Returns:
- the value of the scalerecord component
 
- 
lockedpublic boolean locked()Returns the value of thelockedrecord component.- Returns:
- the value of the lockedrecord component
 
- 
decorationsReturns the value of thedecorationsrecord component.- Returns:
- the value of the decorationsrecord component
 
- 
updateDataReturns the value of theupdateDatarecord component.- Returns:
- the value of the updateDatarecord component
 
 
-