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-name-
public record MapIcon(MapIcon.Type type, byte x, byte z, byte rotation, Optional<Text> name)
extends Record
- Mappings:
Namespace Name official emkintermediary net/minecraft/class_20named net/minecraft/item/map/MapIconofficial bintermediary comp_1842named typeofficial cintermediary comp_1843named xofficial dintermediary comp_1844named zofficial eintermediary comp_1845named rotationofficial fintermediary comp_1846named name
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, MapIcon> The field for thenamerecord component.private final byteThe field for therotationrecord 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, Optional<Text> optional) -
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.booleanname()Returns the value of thenamerecord component.byterotation()Returns the value of therotationrecord 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
-
type
The field for thetyperecord component. -
x
private final byte xThe field for thexrecord component. -
z
private final byte zThe field for thezrecord component. -
rotation
private final byte rotationThe field for therotationrecord component. -
name
The field for thenamerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLemk;a:Lyg;intermediary field_48920Lnet/minecraft/class_20;field_48920:Lnet/minecraft/class_9139;named CODECLnet/minecraft/item/map/MapIcon;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
MapIcon
- Mappings:
Namespace Name Mixin selector official <init>Lemk;<init>(Lemk$a;BBBLjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_20$class_21;BBBLjava/util/Optional;)Vnamed <init>Lnet/minecraft/item/map/MapIcon;<init>(Lnet/minecraft/item/map/MapIcon$Type;BBBLjava/util/Optional;)V
-
-
Method Details
-
getTypeId
public byte getTypeId()- Mappings:
Namespace Name Mixin selector official aLemk;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 bLemk;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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-