类 EternalPotatoImpl
java.lang.Object
top.r3944realms.superleadrope.content.capability.impi.EternalPotatoImpl
- 所有已实现的接口:
IEternalPotato
The type Eternal potato.
-
嵌套类概要
从接口继承的嵌套类/接口 top.r3944realms.superleadrope.content.capability.inter.IEternalPotato
IEternalPotato.ItemStackSync -
字段概要
字段修饰符和类型字段说明static final StringThe constant TAG_COMPLETION_ID.static final StringThe constant TAG_GRACE_PERIOD.static final StringThe constant TAG_ITEM_UUID.static final StringThe constant TAG_LAST_PUNISH_DATE.static final StringThe constant TAG_LAST_RESET.static final StringThe constant TAG_OBLIGATIONS.static final StringThe constant TAG_OWNER_NAME.static final StringThe constant TAG_OWNER_UUID.static final StringThe constant TAG_PENDING_PUNISHMENTS.static final StringThe constant TAG_PUNISHMENT_AFFECT_OTHERS.static final StringThe constant TAG_PUNISHMENT_STRENGTH.static final StringThe constant TAG_PUNISHMENT_TYPE. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void开始初始化(禁止立即发包)voidBind item stack sync.voidbindSyncContext(net.minecraft.world.entity.player.Player player) Bind sync context.voiddeserializeNBT(net.minecraft.nbt.CompoundTag nbt) Deserialize nbt.voidendInit()结束初始化(如果期间有改动,就统一发一次包)net.minecraft.world.entity.player.PlayerGets bound player.Gets completion rule.intGets daily obligations.int宽限惩罚数Gets item uuid.Gets last punish date.Gets last reset.Gets owner name.Gets owner uuid.intGets pending punishments.Gets punishment.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.从接口继承的方法 top.r3944realms.superleadrope.content.capability.inter.IEternalPotato
getFinalTaskCount, isGlobalEffect, isNetworkSyncNonRequired, isWithinGracePeriod
-
字段详细资料
-
TAG_LAST_PUNISH_DATE
The constant TAG_LAST_PUNISH_DATE.- 另请参阅:
-
TAG_PENDING_PUNISHMENTS
The constant TAG_PENDING_PUNISHMENTS.- 另请参阅:
-
TAG_GRACE_PERIOD
The constant TAG_GRACE_PERIOD.- 另请参阅:
-
TAG_OWNER_UUID
The constant TAG_OWNER_UUID.- 另请参阅:
-
TAG_ITEM_UUID
The constant TAG_ITEM_UUID.- 另请参阅:
-
TAG_OWNER_NAME
The constant TAG_OWNER_NAME.- 另请参阅:
-
TAG_OBLIGATIONS
The constant TAG_OBLIGATIONS.- 另请参阅:
-
TAG_LAST_RESET
The constant TAG_LAST_RESET.- 另请参阅:
-
TAG_PUNISHMENT_TYPE
The constant TAG_PUNISHMENT_TYPE.- 另请参阅:
-
TAG_PUNISHMENT_STRENGTH
The constant TAG_PUNISHMENT_STRENGTH.- 另请参阅:
-
TAG_PUNISHMENT_AFFECT_OTHERS
The constant TAG_PUNISHMENT_AFFECT_OTHERS.- 另请参阅:
-
TAG_COMPLETION_ID
The constant TAG_COMPLETION_ID.- 另请参阅:
-
-
构造器详细资料
-
EternalPotatoImpl
public EternalPotatoImpl()
-
-
方法详细资料
-
bindItemStackSync
从接口复制的说明:IEternalPotatoBind item stack sync.- 指定者:
bindItemStackSync在接口中IEternalPotato- 参数:
callback- the callback
-
beginInit
public void beginInit()开始初始化(禁止立即发包)- 指定者:
beginInit在接口中IEternalPotato
-
endInit
public void endInit()结束初始化(如果期间有改动,就统一发一次包)- 指定者:
endInit在接口中IEternalPotato
-
bindSyncContext
public void bindSyncContext(net.minecraft.world.entity.player.Player player) 从接口复制的说明:IEternalPotatoBind sync context.- 指定者:
bindSyncContext在接口中IEternalPotato- 参数:
player- the player
-
getBoundPlayer
public net.minecraft.world.entity.player.Player getBoundPlayer()从接口复制的说明:IEternalPotatoGets bound player.- 指定者:
getBoundPlayer在接口中IEternalPotato- 返回:
- the bound player
-
setItemUUID
从接口复制的说明:IEternalPotatoSets item uuid.- 指定者:
setItemUUID在接口中IEternalPotato- 参数:
uuid- the uuid
-
getItemUUID
从接口复制的说明:IEternalPotatoGets item uuid.- 指定者:
getItemUUID在接口中IEternalPotato- 返回:
- the item uuid
-
setOwner
从接口复制的说明:IEternalPotatoSets owner.- 指定者:
setOwner在接口中IEternalPotato- 参数:
uuid- the uuidname- the name
-
getOwnerUUID
从接口复制的说明:IEternalPotatoGets owner uuid.- 指定者:
getOwnerUUID在接口中IEternalPotato- 返回:
- the owner uuid
-
getOwnerName
从接口复制的说明:IEternalPotatoGets owner name.- 指定者:
getOwnerName在接口中IEternalPotato- 返回:
- the owner name
-
setDailyObligations
public void setDailyObligations(int count) 从接口复制的说明:IEternalPotatoSets daily obligations.- 指定者:
setDailyObligations在接口中IEternalPotato- 参数:
count- the count
-
getDailyObligations
public int getDailyObligations()从接口复制的说明:IEternalPotatoGets daily obligations.- 指定者:
getDailyObligations在接口中IEternalPotato- 返回:
- the daily obligations
-
getPendingPunishments
public int getPendingPunishments()从接口复制的说明:IEternalPotatoGets pending punishments.- 指定者:
getPendingPunishments在接口中IEternalPotato- 返回:
- the pending punishments
-
setPendingPunishments
public void setPendingPunishments(int count) 从接口复制的说明:IEternalPotatoSets pending punishments.- 指定者:
setPendingPunishments在接口中IEternalPotato- 参数:
count- the count
-
getGracePunishments
public int getGracePunishments()从接口复制的说明:IEternalPotato宽限惩罚数- 指定者:
getGracePunishments在接口中IEternalPotato- 返回:
- the grace punishments
-
setGracePunishments
public void setGracePunishments(int count) 从接口复制的说明:IEternalPotatoSets grace punishments.- 指定者:
setGracePunishments在接口中IEternalPotato- 参数:
count- the count
-
syncToClient
public void syncToClient(net.minecraft.world.entity.player.Player player) 从接口复制的说明:IEternalPotatoSync to client.- 指定者:
syncToClient在接口中IEternalPotato- 参数:
player- the player
-
setLastReset
从接口复制的说明:IEternalPotatoSets last reset.- 指定者:
setLastReset在接口中IEternalPotato- 参数:
date- the date
-
getLastReset
从接口复制的说明:IEternalPotatoGets last reset.- 指定者:
getLastReset在接口中IEternalPotato- 返回:
- the last reset
-
getPunishment
从接口复制的说明:IEternalPotatoGets punishment.- 指定者:
getPunishment在接口中IEternalPotato- 返回:
- the punishment
-
setPunishment
从接口复制的说明:IEternalPotatoSets punishment.- 指定者:
setPunishment在接口中IEternalPotato- 参数:
definition- the definition
-
setLastPunishDate
从接口复制的说明:IEternalPotatoSets last punish date.- 指定者:
setLastPunishDate在接口中IEternalPotato- 参数:
date- the date
-
getLastPunishDate
从接口复制的说明:IEternalPotatoGets last punish date.- 指定者:
getLastPunishDate在接口中IEternalPotato- 返回:
- the last punish date
-
getCompletionRule
从接口复制的说明:IEternalPotatoGets completion rule.- 指定者:
getCompletionRule在接口中IEternalPotato- 返回:
- the completion rule
-
setCompletionRule
从接口复制的说明:IEternalPotatoSets completion rule.- 指定者:
setCompletionRule在接口中IEternalPotato- 参数:
completion- the completion
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()从接口复制的说明:IEternalPotatoSerialize nbt compound tag.- 指定者:
serializeNBT在接口中IEternalPotato- 返回:
- the compound tag
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.CompoundTag nbt) 从接口复制的说明:IEternalPotatoDeserialize nbt.- 指定者:
deserializeNBT在接口中IEternalPotato- 参数:
nbt- the nbt
-