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 Details

    • mapId

      private final MapIdComponent mapId
      The field for the mapId record component.
    • scale

      private final byte scale
      The field for the scale record component.
    • locked

      private final boolean locked
      The field for the locked record component.
    • decorations

      private final Optional<List<MapDecoration>> decorations
      The field for the decorations record component.
    • updateData

      private final Optional<MapState.UpdateData> updateData
      The field for the updateData record component.
    • CODEC

      public static final PacketCodec<RegistryByteBuf,MapUpdateS2CPacket> 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

      public PacketType<MapUpdateS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<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

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in 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 Ladm;a(Labu;)V
    • apply

      public void apply(MapState mapState)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • mapId

      public MapIdComponent mapId()
      Returns the value of the mapId record component.
      Returns:
      the value of the mapId record component
    • scale

      public byte scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • locked

      public boolean locked()
      Returns the value of the locked record component.
      Returns:
      the value of the locked record component
    • decorations

      public Optional<List<MapDecoration>> decorations()
      Returns the value of the decorations record component.
      Returns:
      the value of the decorations record component
    • updateData

      public Optional<MapState.UpdateData> updateData()
      Returns the value of the updateData record component.
      Returns:
      the value of the updateData record component