接口 IEternalPotato
- 所有已知实现类:
EternalPotatoImpl
public interface IEternalPotato
The interface Eternal potato.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明voidBegin init.voidBind item stack sync.voidbindSyncContext(net.minecraft.world.entity.player.Player player) Bind sync context.voiddeserializeNBT(net.minecraft.nbt.CompoundTag nbt) Deserialize nbt.voidendInit()End init.net.minecraft.world.entity.player.PlayerGets bound player.Gets completion rule.intGets daily obligations.default int计算今日总任务次数 = 未完成惩罚次数 + 当日剩余次数int宽限惩罚数Gets item uuid.Gets last punish date.Gets last reset.Gets owner name.Gets owner uuid.intGets pending punishments.Gets punishment.default booleanIs global effect boolean.default booleanIs network sync non required boolean.default boolean是否在宽限期内net.minecraft.nbt.CompoundTagSerialize nbt compound tag.voidsetCompletionRule(IObligationCompletion completion) Sets completion rule.voidsetDailyObligations(int count) Sets daily obligations.voidsetGracePunishments(int count) Sets grace punishments.voidsetItemUUID(UUID uuid) Sets item uuid.voidsetLastPunishDate(String date) Sets last punish date.voidsetLastReset(String date) Sets last reset.voidSets owner.voidsetPendingPunishments(int count) Sets pending punishments.voidsetPunishment(PunishmentDefinition definition) Sets punishment.voidsyncToClient(net.minecraft.world.entity.player.Player player) Sync to client.
-
方法详细资料
-
bindItemStackSync
Bind item stack sync.- 参数:
callback- the callback
-
beginInit
void beginInit()Begin init. -
endInit
void endInit()End init. -
setItemUUID
Sets item uuid.- 参数:
uuid- the uuid
-
getItemUUID
UUID getItemUUID()Gets item uuid.- 返回:
- the item uuid
-
setOwner
Sets owner.- 参数:
uuid- the uuidname- 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
Sets last reset.- 参数:
date- the date
-
getLastReset
String getLastReset()Gets last reset.- 返回:
- the last reset
-
getPunishment
PunishmentDefinition getPunishment()Gets punishment.- 返回:
- the punishment
-
setPunishment
Sets punishment.- 参数:
definition- the definition
-
setLastPunishDate
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
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
-