Record Class MapUpdateS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.MapUpdateS2CPacket
- Record Components:
mapId-scale-locked-icons-updateData-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record MapUpdateS2CPacket(MapId mapId, byte scale, boolean locked, Optional<List<MapIcon>> icons, Optional<MapState.UpdateData> updateData)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official aceintermediary net/minecraft/class_2683named net/minecraft/network/packet/s2c/play/MapUpdateS2CPacketofficial bintermediary comp_2270named mapIdofficial cintermediary comp_2271named scaleofficial dintermediary comp_2272named lockedofficial eintermediary comp_2273named iconsofficial fintermediary comp_2274named updateData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, MapUpdateS2CPacket> The field for theiconsrecord component.private final booleanThe field for thelockedrecord component.private final MapIdThe field for themapIdrecord component.private final byteThe field for thescalerecord component.private final Optional<MapState.UpdateData> The field for theupdateDatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMapUpdateS2CPacket(MapId mapId, byte scale, boolean locked, @Nullable Collection<MapIcon> icons, MapState.UpdateData updateData) MapUpdateS2CPacket(MapId mapId, byte byte2, boolean bool, Optional<List<MapIcon>> optional, Optional<MapState.UpdateData> optional2) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapply(ClientPlayPacketListener clientPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icons()Returns the value of theiconsrecord component.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. -
icons
The field for theiconsrecord component. -
updateData
The field for theupdateDatarecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLace;a:Lxs;intermediary field_47938Lnet/minecraft/class_2683;field_47938:Lnet/minecraft/class_9139;named CODECLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
MapUpdateS2CPacket
public MapUpdateS2CPacket(MapId mapId, byte scale, boolean locked, @Nullable @Nullable Collection<MapIcon> icons, @Nullable MapState.UpdateData updateData) - Mappings:
Namespace Name Mixin selector official <init>Lace;<init>(Lejw;BZLjava/util/Collection;Lejy$b;)Vintermediary <init>Lnet/minecraft/class_2683;<init>(Lnet/minecraft/class_9209;BZLjava/util/Collection;Lnet/minecraft/class_22$class_5637;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;<init>(Lnet/minecraft/item/map/MapId;BZLjava/util/Collection;Lnet/minecraft/item/map/MapState$UpdateData;)V
-
MapUpdateS2CPacket
-
-
Method Details
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLyb;a()Lyd;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLace;a(Laam;)Vintermediary method_11643Lnet/minecraft/class_2683;method_11643(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
apply
- Mappings:
Namespace Name Mixin selector official aLace;a(Lejy;)Vintermediary method_11642Lnet/minecraft/class_2683;method_11642(Lnet/minecraft/class_22;)Vnamed applyLnet/minecraft/network/packet/s2c/play/MapUpdateS2CPacket;apply(Lnet/minecraft/item/map/MapState;)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
-
icons
Returns the value of theiconsrecord component.- Returns:
- the value of the
iconsrecord component
-
updateData
Returns the value of theupdateDatarecord component.- Returns:
- the value of the
updateDatarecord component
-