类 PotatoSavedData

java.lang.Object
net.minecraft.world.level.saveddata.SavedData
top.r3944realms.superleadrope.core.potato.PotatoSavedData

public class PotatoSavedData extends net.minecraft.world.level.saveddata.SavedData
The type Potato saved data.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
    The constant DATA_NAME.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    create(net.minecraft.server.level.ServerLevel level)
    Create potato saved data.
    load(net.minecraft.nbt.CompoundTag tag)
    Load potato saved data.
    @NotNull net.minecraft.nbt.CompoundTag
    save(net.minecraft.nbt.CompoundTag tag)
     

    从类继承的方法 net.minecraft.world.level.saveddata.SavedData

    isDirty, save, setDirty, setDirty

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • PotatoSavedData

      public PotatoSavedData()
  • 方法详细资料

    • save

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag)
      指定者:
      save 在类中 net.minecraft.world.level.saveddata.SavedData
    • load

      public static PotatoSavedData load(net.minecraft.nbt.CompoundTag tag)
      Load potato saved data.
      参数:
      tag - the tag
      返回:
      the potato saved data
    • create

      public static PotatoSavedData create(net.minecraft.server.level.ServerLevel level)
      Create potato saved data.
      参数:
      level - the level
      返回:
      the potato saved data