Record Class MapItemDecorations.Entry
java.lang.Object
java.lang.Record
fr.fidorial.item.component.MapItemDecorations.Entry
- Record Components:
type- what icon to drawx- the X coordinate it marksz- the Z coordinate it marksrotation- how far it is turned, in degrees clockwise
- Enclosing class:
MapItemDecorations
public static record MapItemDecorations.Entry(TypedKey<MapDecorationType> type, double x, double z, float rotation)
extends Record
One icon, placed in the world.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(TypedKey<MapDecorationType> type, double x, double z, float rotation) Creates an instance of aEntryrecord class. -
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.floatrotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.doublex()Returns the value of thexrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
type
-
x
-
z
-
rotation
-