Package com.teampotato.potacore.data
Class PotatoEntityData
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
com.teampotato.potacore.data.PotatoEntityData
public class PotatoEntityData
extends net.minecraft.world.level.saveddata.SavedData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()static @NotNull PotatoEntityDataget(@NotNull net.minecraft.server.level.ServerLevel level) <T> T@Nullable Byte@Nullable net.minecraft.nbt.CompoundTaggetCompound(UUID uuid, String key) @Nullable ObjectgetDataMap(@NotNull UUID uuid) @Nullable Double@Nullable Float@Nullable Integer@Nullable net.minecraft.nbt.ListTag@Nullable Long@Nullable Short@Nullable Stringstatic @NotNull PotatoEntityDataload(net.minecraft.nbt.CompoundTag tag) voidremoveData(@NotNull UUID entity) voidremoveData(@NotNull UUID entity, @NotNull String key) @NotNull net.minecraft.nbt.CompoundTagsave(@NotNull net.minecraft.nbt.CompoundTag compoundTag) voidvoidsetDataMap(@NotNull UUID entity, @NotNull Map<String, Object> dataMap) Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, save, setDirty, setDirty
-
Constructor Details
-
PotatoEntityData
public PotatoEntityData()
-
-
Method Details
-
get
@NotNull public static @NotNull PotatoEntityData get(@NotNull @NotNull net.minecraft.server.level.ServerLevel level) -
load
-
save
@NotNull public @NotNull net.minecraft.nbt.CompoundTag save(@NotNull @NotNull net.minecraft.nbt.CompoundTag compoundTag) - Specified by:
savein classnet.minecraft.world.level.saveddata.SavedData
-
setData
-
setDataMap
-
removeData
-
removeData
-
getDataMap
-
getData
-
getAs
-
getString
-
getInt
-
getDouble
-
getFloat
-
getLong
-
getShort
-
getByte
-
getList
-
getCompound
-
clearAll
public void clearAll()
-