Package net.minecraft.item.map
Record Class MapIcon
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapIcon
- Record Components:
type
-x
-z
-rotation
-text
-
public record MapIcon(MapIcon.Type type, byte x, byte z, byte rotation, @Nullable Text text)
extends Record
- Mappings:
Namespace Name official efy
intermediary net/minecraft/class_20
named net/minecraft/item/map/MapIcon
official a
intermediary comp_1842
named type
official b
intermediary comp_1843
named x
official c
intermediary comp_1844
named z
official d
intermediary comp_1845
named rotation
official e
intermediary comp_1846
named text
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte
The field for therotation
record component.The field for thetext
record component.private final MapIcon.Type
The field for thetype
record component.private final byte
The field for thex
record component.private final byte
The field for thez
record component. -
Constructor Summary
ConstructorDescriptionMapIcon
(MapIcon.Type type, byte x, byte z, byte rotation, @Nullable Text text) Creates an instance of aMapIcon
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.byte
final int
hashCode()
Returns a hash code value for this object.boolean
byte
rotation()
Returns the value of therotation
record component.text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.byte
x()
Returns the value of thex
record component.byte
z()
Returns the value of thez
record component.
-
Field Details
-
Constructor Details
-
Method Details
-
getTypeId
public byte getTypeId()- Mappings:
Namespace Name Mixin selector official a
Lefy;a()B
intermediary method_92
Lnet/minecraft/class_20;method_92()B
named getTypeId
Lnet/minecraft/item/map/MapIcon;getTypeId()B
-
isAlwaysRendered
public boolean isAlwaysRendered()- Mappings:
Namespace Name Mixin selector official b
Lefy;b()Z
intermediary method_94
Lnet/minecraft/class_20;method_94()Z
named isAlwaysRendered
Lnet/minecraft/item/map/MapIcon;isAlwaysRendered()Z
-
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 '=='. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
x
public byte x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public byte z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
rotation
public byte rotation()Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-