Class RewardWorldStorage

java.lang.Object
net.minecraft.world.level.saveddata.SavedData
com.hrznstudio.titanium.reward.storage.RewardWorldStorage

public class RewardWorldStorage extends net.minecraft.world.level.saveddata.SavedData
  • Field Details

    • NAME

      public static String NAME
  • Method Details

    • get

      public static RewardWorldStorage get(net.minecraft.server.level.ServerLevel world)
    • remove

      public void remove(UUID uuid, net.minecraft.resources.ResourceLocation resourceLocation)
    • add

      public void add(UUID uuid, net.minecraft.resources.ResourceLocation resourceLocation, String option)
    • addFree

      public void addFree(net.minecraft.resources.ResourceLocation resourceLocation)
    • getFreeRewards

      public List<net.minecraft.resources.ResourceLocation> getFreeRewards()
    • getConfiguredPlayers

      public List<UUID> getConfiguredPlayers()
    • load

      public RewardWorldStorage load(net.minecraft.nbt.CompoundTag nbt)
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData
    • serializeSimple

      public net.minecraft.nbt.CompoundTag serializeSimple()