Record Class MapState.UpdateData

java.lang.Object
java.lang.Record
net.minecraft.item.map.MapState.UpdateData
Record Components:
startX -
startZ -
width -
height -
colors -
Enclosing class:
MapState

public static record MapState.UpdateData(int startX, int startZ, int width, int height, byte[] colors) extends Record
Mappings:
Namespace Name
named net/minecraft/item/map/MapState$UpdateData
intermediary net/minecraft/class_22$class_5637
official evq$c
named startX
intermediary comp_2316
official b
named startZ
intermediary comp_2317
official c
named width
intermediary comp_2318
official d
named height
intermediary comp_2319
official e
named colors
intermediary comp_2320
official f
  • Field Details

    • startX

      private final int startX
      The field for the startX record component.
    • startZ

      private final int startZ
      The field for the startZ record component.
    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height record component.
    • colors

      private final byte[] colors
      The field for the colors record component.
    • CODEC

      public static final PacketCodec<ByteBuf,Optional<MapState.UpdateData>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/map/MapState$UpdateData;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48925 Lnet/minecraft/class_22$class_5637;field_48925:Lnet/minecraft/class_9139;
      official a Levq$c;a:Lzt;
  • Constructor Details

    • UpdateData

      public UpdateData(int startX, int startZ, int width, int height, byte[] colors)
      Creates an instance of a UpdateData record class.
      Parameters:
      startX - the value for the startX record component
      startZ - the value for the startZ record component
      width - the value for the width record component
      height - the value for the height record component
      colors - the value for the colors record component
  • Method Details

    • encode

      private static void encode(ByteBuf buf, Optional<MapState.UpdateData> updateData)
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/item/map/MapState$UpdateData;encode(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)V
      intermediary method_56817 Lnet/minecraft/class_22$class_5637;method_56817(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)V
      official a Levq$c;a(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)V
    • decode

      private static Optional<MapState.UpdateData> decode(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/item/map/MapState$UpdateData;decode(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;
      intermediary method_56816 Lnet/minecraft/class_22$class_5637;method_56816(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;
      official a Levq$c;a(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;
    • setColorsTo

      public void setColorsTo(MapState mapState)
      Mappings:
      Namespace Name Mixin selector
      named setColorsTo Lnet/minecraft/item/map/MapState$UpdateData;setColorsTo(Lnet/minecraft/item/map/MapState;)V
      intermediary method_32380 Lnet/minecraft/class_22$class_5637;method_32380(Lnet/minecraft/class_22;)V
      official a Levq$c;a(Levq;)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.
    • startX

      public int startX()
      Returns the value of the startX record component.
      Returns:
      the value of the startX record component
    • startZ

      public int startZ()
      Returns the value of the startZ record component.
      Returns:
      the value of the startZ record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • colors

      public byte[] colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component