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$Marker- intermediary - net/minecraft/class_22$class_9907- official - euu$b- named - type- intermediary - comp_2974- official - a- named - x- intermediary - comp_2975- official - b- named - y- intermediary - comp_2976- official - c- named - rot- intermediary - comp_2977- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionMarker(RegistryEntry<MapDecorationType> registryEntry, byte byte2, byte byte3, byte byte4) 
- 
Method SummaryModifier 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- 
MarkerMarker(RegistryEntry<MapDecorationType> registryEntry, byte byte2, byte byte3, byte byte4) 
 
- 
- 
Method Details- 
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 '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
xpublic byte x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic byte y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
rotpublic byte rot()Returns the value of therotrecord component.- Returns:
- the value of the rotrecord component
 
 
-