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 - euu$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionUpdateData(int startX, int startZ, int width, int height, byte[] colors) Creates an instance of aUpdateDatarecord class.
- 
Method SummaryModifier 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- 
startXprivate final int startXThe field for thestartXrecord component.
- 
startZprivate final int startZThe field for thestartZrecord component.
- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
colorsprivate final byte[] colorsThe field for thecolorsrecord 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- Leuu$c;a:Lyn;
 
 
- 
- 
Constructor Details- 
UpdateDatapublic 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 - 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- Leuu$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- Leuu$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- Leuu$c;a(Leuu;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
startXpublic int startX()Returns the value of thestartXrecord component.- Returns:
- the value of the startXrecord component
 
- 
startZpublic int startZ()Returns the value of thestartZrecord component.- Returns:
- the value of the startZrecord component
 
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
colorspublic byte[] colors()Returns the value of thecolorsrecord component.- Returns:
- the value of the colorsrecord component
 
 
-