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/MapUpdateS2CPacketintermediary net/minecraft/class_2683official admnamed mapIdintermediary comp_2270official bnamed scaleintermediary comp_2271official cnamed lockedintermediary comp_2272official dnamed decorationsintermediary comp_2273official enamed updateDataintermediary comp_2274official f
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionMapUpdateS2CPacket(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 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
mapId
The field for themapIdrecord component. -
scale
private final byte scaleThe field for thescalerecord component. -
locked
private final boolean lockedThe field for thelockedrecord component. -
decorations
The field for thedecorationsrecord component. -
updateData
The field for theupdateDatarecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47938Lnet/minecraft/class_2683;field_47938:Lnet/minecraft/class_9139;official aLadm;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;)Vintermediary <init>Lnet/minecraft/class_2683;<init>(Lnet/minecraft/class_9209;BZLjava/util/Collection;Lnet/minecraft/class_22$class_5637;)Vofficial <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:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;official aLzg;a()Lzi;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_11643Lnet/minecraft/class_2683;method_11643(Lnet/minecraft/class_2602;)Vofficial aLadm;a(Labu;)V
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/item/map/MapState;)Vintermediary method_11642Lnet/minecraft/class_2683;method_11642(Lnet/minecraft/class_22;)Vofficial aLadm;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 themapIdrecord component.- Returns:
- the value of the
mapIdrecord component
-
scale
public byte scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
locked
public boolean locked()Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
decorations
Returns the value of thedecorationsrecord component.- Returns:
- the value of the
decorationsrecord component
-
updateData
Returns the value of theupdateDatarecord component.- Returns:
- the value of the
updateDatarecord component
-