Record Class MapFrame
java.lang.Object
java.lang.Record
net.minecraft.world.level.saveddata.maps.MapFrame
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
entityId()
Returns the value of theentityId
record component.final boolean
Indicates whether some other object is "equal to" this one.static String
getId()
final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.int
rotation()
Returns the value of therotation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pos
The field for thepos
record component. -
rotation
private final int rotationThe field for therotation
record component. -
entityId
private final int entityIdThe field for theentityId
record component. -
CODEC
-
-
Constructor Details
-
MapFrame
Creates an instance of aMapFrame
record class.- Parameters:
pos
- the value for thepos
record componentrotation
- the value for therotation
record componententityId
- the value for theentityId
record component
-
-
Method Details
-
getId
-
frameId
-
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 '=='. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
rotation
public int rotation()Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
entityId
public int entityId()Returns the value of theentityId
record component.- Returns:
- the value of the
entityId
record component
-