Record Class Waypoint
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.waypoint.Waypoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.static WaypointfromNbt(net.minecraft.nbt.CompoundTag tag) final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.name()Returns the value of thenamerecord component.net.minecraft.nbt.CompoundTagtoNbt()final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
Waypoint
Creates an instance of aWaypointrecord class.- Parameters:
name- the value for thenamerecord componenticon- the value for theiconrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
fromNbt
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-