Class WaypointSavedData
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
de.luckymcdev.foundryengine.common.waypoint.storage.WaypointSavedData
public class WaypointSavedData
extends net.minecraft.world.level.saveddata.SavedData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.saveddata.SavedDataType<WaypointSavedData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWaypoint(int x, int y, int z, String name, String icon, Color color) voidstatic WaypointSavedDataget(net.minecraft.server.level.ServerLevel level) net.minecraft.nbt.CompoundTaggetData()List<net.minecraft.nbt.CompoundTag> booleanremoveWaypoint(int x, int y, int z) voidsetData(net.minecraft.nbt.CompoundTag tag) net.minecraft.nbt.CompoundTagtoNbt()Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, setDirty, setDirty
-
Field Details
-
TYPE
-
-
Constructor Details
-
WaypointSavedData
public WaypointSavedData() -
WaypointSavedData
public WaypointSavedData(net.minecraft.nbt.CompoundTag tag)
-
-
Method Details
-
get
-
getData
public net.minecraft.nbt.CompoundTag getData() -
setData
public void setData(net.minecraft.nbt.CompoundTag tag) -
getWaypoints
-
addWaypoint
-
removeWaypoint
public boolean removeWaypoint(int x, int y, int z) -
clearWaypoints
public void clearWaypoints() -
toNbt
public net.minecraft.nbt.CompoundTag toNbt()
-