接口 BrewingStand
酿造台的 'has_bottle_0', 'has_bottle_1', 'has_bottle_2' 标识接口表示是否在外部贴图渲染出瓶子.
原文:
Interface to the 'has_bottle_0', 'has_bottle_1', 'has_bottle_2' flags on a
brewing stand which indicate which bottles are rendered on the outside.
酿造台可能有 0, 1... getMaximumBottles()
-1 个瓶子.
-
方法概要
从接口继承的方法 org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
方法详细资料
-
hasBottle
boolean hasBottle(int bottle) 检查酿造台指定位置是否有瓶子.原文: Checks if the stand has the following bottle
- 参数:
bottle
- 要检查的位置- 返回:
- 是否存在瓶子
-
setBottle
void setBottle(int bottle, boolean has) 设置酿造台指定位置是否有瓶子.原文: Set whether the stand has this bottle present.
- 参数:
bottle
- 要设置的位置has
- 是否存在瓶子
-
getBottles
获取酿造台上所有瓶子的位置.原文: Get the indexes of all the bottles present on this block.
- 返回:
- 代表所有瓶子的位置索引集合
-
getMaximumBottles
int getMaximumBottles()获取该酿造台所能容纳瓶子的最大数量.原文: Get the maximum amount of bottles present on this stand.
- 返回:
- 瓶子的最大数量
-