Package net.minecraft.item.map
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 Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, Optional<MapState.UpdateData>> private final byte[]
The field for thecolors
record component.private final int
The field for theheight
record component.private final int
The field for thestartX
record component.private final int
The field for thestartZ
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorDescriptionUpdateData
(int startX, int startZ, int width, int height, byte[] colors) Creates an instance of aUpdateData
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
colors()
Returns the value of thecolors
record component.private static Optional
<MapState.UpdateData> private static void
encode
(ByteBuf buf, Optional<MapState.UpdateData> updateData) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.void
setColorsTo
(MapState mapState) int
startX()
Returns the value of thestartX
record component.int
startZ()
Returns the value of thestartZ
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
startX
private final int startXThe field for thestartX
record component. -
startZ
private final int startZThe field for thestartZ
record component. -
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
colors
private final byte[] colorsThe field for thecolors
record component. -
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 aUpdateData
record class.
-
-
Method Details
-
encode
- 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
- 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
- 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
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 '=='. -
startX
public int startX()Returns the value of thestartX
record component.- Returns:
- the value of the
startX
record component
-
startZ
public int startZ()Returns the value of thestartZ
record component.- Returns:
- the value of the
startZ
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
colors
public byte[] colors()Returns the value of thecolors
record component.- Returns:
- the value of the
colors
record component
-