所有已知实现类:
EternalPotatoImpl

public interface IEternalPotato
The interface Eternal potato.
  • 方法详细资料

    • bindItemStackSync

      void bindItemStackSync(IEternalPotato.ItemStackSync callback)
      Bind item stack sync.
      参数:
      callback - the callback
    • beginInit

      void beginInit()
      Begin init.
    • endInit

      void endInit()
      End init.
    • setItemUUID

      void setItemUUID(UUID uuid)
      Sets item uuid.
      参数:
      uuid - the uuid
    • getItemUUID

      UUID getItemUUID()
      Gets item uuid.
      返回:
      the item uuid
    • setOwner

      void setOwner(UUID uuid, String name)
      Sets owner.
      参数:
      uuid - the uuid
      name - the name
    • getOwnerUUID

      UUID getOwnerUUID()
      Gets owner uuid.
      返回:
      the owner uuid
    • getOwnerName

      String getOwnerName()
      Gets owner name.
      返回:
      the owner name
    • setDailyObligations

      void setDailyObligations(int count)
      Sets daily obligations.
      参数:
      count - the count
    • getDailyObligations

      int getDailyObligations()
      Gets daily obligations.
      返回:
      the daily obligations
    • getPendingPunishments

      int getPendingPunishments()
      Gets pending punishments.
      返回:
      the pending punishments
    • setPendingPunishments

      void setPendingPunishments(int count)
      Sets pending punishments.
      参数:
      count - the count
    • getFinalTaskCount

      default int getFinalTaskCount()
      计算今日总任务次数 = 未完成惩罚次数 + 当日剩余次数
      返回:
      the final task count
    • isNetworkSyncNonRequired

      default boolean isNetworkSyncNonRequired()
      Is network sync non required boolean.
      返回:
      the boolean
    • isGlobalEffect

      default boolean isGlobalEffect()
      Is global effect boolean.
      返回:
      the boolean
    • isWithinGracePeriod

      default boolean isWithinGracePeriod()
      是否在宽限期内
      返回:
      the boolean
    • getGracePunishments

      int getGracePunishments()
      宽限惩罚数
      返回:
      the grace punishments
    • setGracePunishments

      void setGracePunishments(int count)
      Sets grace punishments.
      参数:
      count - the count
    • syncToClient

      void syncToClient(net.minecraft.world.entity.player.Player player)
      Sync to client.
      参数:
      player - the player
    • bindSyncContext

      void bindSyncContext(net.minecraft.world.entity.player.Player player)
      Bind sync context.
      参数:
      player - the player
    • getBoundPlayer

      net.minecraft.world.entity.player.Player getBoundPlayer()
      Gets bound player.
      返回:
      the bound player
    • setLastReset

      void setLastReset(String date)
      Sets last reset.
      参数:
      date - the date
    • getLastReset

      String getLastReset()
      Gets last reset.
      返回:
      the last reset
    • getPunishment

      PunishmentDefinition getPunishment()
      Gets punishment.
      返回:
      the punishment
    • setPunishment

      void setPunishment(PunishmentDefinition definition)
      Sets punishment.
      参数:
      definition - the definition
    • setLastPunishDate

      void setLastPunishDate(String date)
      Sets last punish date.
      参数:
      date - the date
    • getLastPunishDate

      String getLastPunishDate()
      Gets last punish date.
      返回:
      the last punish date
    • getCompletionRule

      IObligationCompletion getCompletionRule()
      Gets completion rule.
      返回:
      the completion rule
    • setCompletionRule

      void setCompletionRule(IObligationCompletion completion)
      Sets completion rule.
      参数:
      completion - the completion
    • serializeNBT

      net.minecraft.nbt.CompoundTag serializeNBT()
      Serialize nbt compound tag.
      返回:
      the compound tag
    • deserializeNBT

      void deserializeNBT(net.minecraft.nbt.CompoundTag nbt)
      Deserialize nbt.
      参数:
      nbt - the nbt