程序包 org.bukkit.block
接口 Vault
- 所有超级接口:
BlockState,Metadatable,PersistentDataHolder,TileState
代表一个捕获的保险库状态.
原文:Represents a captured state of a vault.
-
方法概要
修饰符和类型方法说明double获取玩家必须进入才能激活此保险库的距离.double获取玩家必须退出才能停用此保险库的距离.获取此保险库将用于显示物品的战利品表.获取玩家必须用来解锁此保险库的物品堆.获取此保险库将从中选择奖励的战利品表.获取已经从此保险库收到奖励的玩家.voidsetActivationRange(double range) 设置玩家必须进入才能激活此保险库的距离.voidsetDeactivationRange(double range) 设置玩家必须退出才能停用此保险库的距离.void设置此保险库将用于显示物品的战利品表.voidsetKeyItem(@NotNull ItemStack keyItem) 设置玩家必须用来解锁此保险库的物品堆.voidsetLootTable(@NotNull LootTable table) 设置此保险库将从中选择奖励的战利品表.从接口继承的方法 org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata从接口继承的方法 org.bukkit.block.TileState
getPersistentDataContainer
-
方法详细资料
-
getActivationRange
double getActivationRange()获取玩家必须进入才能激活此保险库的距离. 原文:Gets the distance at which a player must enter for this vault to activate.- 返回:
- 玩家必须进入才能激活此保险库的距离 原文:the distance at which a player must enter for this vault to activate.
-
setActivationRange
void setActivationRange(double range) 设置玩家必须进入才能激活此保险库的距离. 原文:Sets the distance at which a player must enter for this vault to activate.- 参数:
range- 玩家必须进入才能激活此保险库的距离 原文:the distance at which a player must enter for this vault to activate.
-
getDeactivationRange
double getDeactivationRange()获取玩家必须退出才能停用此保险库的距离. 原文:Gets the distance at which a player must exit for the vault to deactivate.- 返回:
- 玩家必须退出才能停用此保险库的距离 原文:the distance at which a player must exit for the vault to deactivate.
-
setDeactivationRange
void setDeactivationRange(double range) 设置玩家必须退出才能停用此保险库的距离. 原文:Sets the distance at which a player must exit for the vault to deactivate.- 参数:
range- 玩家必须退出才能停用此保险库的距离 原文:the distance at which a player must exit for this vault to deactivate.
-
getLootTable
- 返回:
- 战利品表 原文:the loot table
-
setLootTable
- 参数:
table- 战利品表 原文:the loot table
-
getDisplayLootTable
获取此保险库将用于显示物品的战利品表.
如果此值为null,则将使用常规战利品表来显示物品. 原文:Gets theLootTablethis vault will display items from.
If this value is null the regular loot table will be used to display items.- 返回:
- 用于显示物品的战利品表 原文:the loot table to display items from
-
setDisplayLootTable
设置此保险库将用于显示物品的战利品表.
如果此值设置为null,则将使用常规战利品表来显示物品. 原文:Sets theLootTablethis vault will display items from.
If this value is set to null the regular loot table will be used to display items.- 参数:
table- 用于显示物品的战利品表 原文:the loot table to display items from
-
getKeyItem
- 返回:
- 钥匙物品 原文:the key item
-
setKeyItem
- 参数:
keyItem- 钥匙物品 原文:the key item
-
getRewardedPlayers
获取已经从此保险库收到奖励的玩家. 原文:Gets the players who have already received rewards from this vault.- 返回:
- 玩家UUID的不可修改集合 原文:unmodifiable set of player UUIDs
- 抛出:
IllegalStateException- 如果此方块状态未被放置 原文:if this block state is not placed
-