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$UpdateDataintermediary net/minecraft/class_22$class_5637official eqt$bnamed startXintermediary comp_2316official bnamed startZintermediary comp_2317official cnamed widthintermediary comp_2318official dnamed heightintermediary comp_2319official enamed colorsintermediary comp_2320official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<ByteBuf, Optional<MapState.UpdateData>> private final byte[]The field for thecolorsrecord component.private final intThe field for theheightrecord component.private final intThe field for thestartXrecord component.private final intThe field for thestartZrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUpdateData(int startX, int startZ, int width, int height, byte[] colors) Creates an instance of aUpdateDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]colors()Returns the value of thecolorsrecord component.private static Optional<MapState.UpdateData> private static voidencode(ByteBuf buf, Optional<MapState.UpdateData> updateData) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.voidsetColorsTo(MapState mapState) intstartX()Returns the value of thestartXrecord component.intstartZ()Returns the value of thestartZrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
startX
private final int startXThe field for thestartXrecord component. -
startZ
private final int startZThe field for thestartZrecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
colors
private final byte[] colorsThe field for thecolorsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/map/MapState$UpdateData;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48925Lnet/minecraft/class_22$class_5637;field_48925:Lnet/minecraft/class_9139;official aLeqt$b;a:Lyx;
-
-
Constructor Details
-
UpdateData
public UpdateData(int startX, int startZ, int width, int height, byte[] colors) Creates an instance of aUpdateDatarecord class.
-
-
Method Details
-
encode
- Mappings:
Namespace Name Mixin selector named encodeLnet/minecraft/item/map/MapState$UpdateData;encode(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)Vintermediary method_56817Lnet/minecraft/class_22$class_5637;method_56817(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)Vofficial aLeqt$b;a(Lio/netty/buffer/ByteBuf;Ljava/util/Optional;)V
-
decode
- Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/item/map/MapState$UpdateData;decode(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;intermediary method_56816Lnet/minecraft/class_22$class_5637;method_56816(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;official aLeqt$b;a(Lio/netty/buffer/ByteBuf;)Ljava/util/Optional;
-
setColorsTo
- Mappings:
Namespace Name Mixin selector named setColorsToLnet/minecraft/item/map/MapState$UpdateData;setColorsTo(Lnet/minecraft/item/map/MapState;)Vintermediary method_32380Lnet/minecraft/class_22$class_5637;method_32380(Lnet/minecraft/class_22;)Vofficial aLeqt$b;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 '=='. -
startX
public int startX()Returns the value of thestartXrecord component.- Returns:
- the value of the
startXrecord component
-
startZ
public int startZ()Returns the value of thestartZrecord component.- Returns:
- the value of the
startZrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
colors
public byte[] colors()Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-