Package net.minecraft.item.map
Record Class MapState.Marker
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapState.Marker
- Record Components:
type-x-y-rot-
- Enclosing class:
MapState
private static record MapState.Marker(RegistryEntry<MapDecorationType> type, byte x, byte y, byte rot)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/map/MapState$Markerintermediary net/minecraft/class_22$class_9907official ezv$bnamed typeintermediary comp_2974official anamed xintermediary comp_2975official bnamed yintermediary comp_2976official cnamed rotintermediary comp_2977official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteThe field for therotrecord component.private final RegistryEntry<MapDecorationType> The field for thetyperecord component.private final byteThe field for thexrecord component.private final byteThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMarker(RegistryEntry<MapDecorationType> registryEntry, byte byte2, byte byte3, byte byte4) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byterot()Returns the value of therotrecord 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.bytey()Returns the value of theyrecord component.
-
Field Details
-
Constructor Details
-
Marker
Marker(RegistryEntry<MapDecorationType> registryEntry, byte byte2, byte byte3, byte byte4)
-
-
Method Details
-
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
-
y
public byte y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
rot
public byte rot()Returns the value of therotrecord component.- Returns:
- the value of the
rotrecord component
-