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 efyintermediary net/minecraft/class_20named net/minecraft/item/map/MapIconofficial aintermediary comp_1842named typeofficial bintermediary comp_1843named xofficial cintermediary comp_1844named zofficial dintermediary comp_1845named rotationofficial eintermediary comp_1846named text
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteThe field for therotationrecord component.The field for thetextrecord component.private final MapIcon.TypeThe field for thetyperecord component.private final byteThe field for thexrecord component.private final byteThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMapIcon(MapIcon.Type type, byte x, byte z, byte rotation, @Nullable Text text) Creates an instance of aMapIconrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.bytefinal inthashCode()Returns a hash code value for this object.booleanbyterotation()Returns the value of therotationrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.bytex()Returns the value of thexrecord component.bytez()Returns the value of thezrecord component.
-
Field Details
-
Constructor Details
-
Method Details
-
getTypeId
public byte getTypeId()- Mappings:
Namespace Name Mixin selector official aLefy;a()Bintermediary method_92Lnet/minecraft/class_20;method_92()Bnamed getTypeIdLnet/minecraft/item/map/MapIcon;getTypeId()B
-
isAlwaysRendered
public boolean isAlwaysRendered()- Mappings:
Namespace Name Mixin selector official bLefy;b()Zintermediary method_94Lnet/minecraft/class_20;method_94()Znamed isAlwaysRenderedLnet/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 thetyperecord component.- Returns:
- the value of the
typerecord component
-
x
public byte x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public byte z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
rotation
public byte rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-