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 Details

    • PotatoEntityData

      public PotatoEntityData()
  • Method Details

    • get

      @NotNull public static @NotNull PotatoEntityData get(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • load

      @NotNull public static @NotNull PotatoEntityData load(net.minecraft.nbt.CompoundTag tag)
    • save

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag save(@NotNull @NotNull net.minecraft.nbt.CompoundTag compoundTag)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData
    • setData

      public void setData(@NotNull @NotNull UUID entity, @NotNull @NotNull String key, @NotNull @NotNull Object value)
    • setDataMap

      public void setDataMap(@NotNull @NotNull UUID entity, @NotNull @NotNull Map<String,Object> dataMap)
    • removeData

      public void removeData(@NotNull @NotNull UUID entity, @NotNull @NotNull String key)
    • removeData

      public void removeData(@NotNull @NotNull UUID entity)
    • getDataMap

      @NotNull public @NotNull Map<String,Object> getDataMap(@NotNull @NotNull UUID uuid)
    • getData

      @Nullable public @Nullable Object getData(@NotNull @NotNull UUID entity, @NotNull @NotNull String key)
    • getAs

      @Nullable public <T> T getAs(UUID uuid, String key, @NotNull @NotNull Class<T> type)
    • getString

      @Nullable public @Nullable String getString(UUID uuid, String key)
    • getInt

      @Nullable public @Nullable Integer getInt(UUID uuid, String key)
    • getDouble

      @Nullable public @Nullable Double getDouble(UUID uuid, String key)
    • getFloat

      @Nullable public @Nullable Float getFloat(UUID uuid, String key)
    • getLong

      @Nullable public @Nullable Long getLong(UUID uuid, String key)
    • getShort

      @Nullable public @Nullable Short getShort(UUID uuid, String key)
    • getByte

      @Nullable public @Nullable Byte getByte(UUID uuid, String key)
    • getList

      @Nullable public @Nullable net.minecraft.nbt.ListTag getList(UUID uuid, String key)
    • getCompound

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag getCompound(UUID uuid, String key)
    • clearAll

      public void clearAll()