接口 Directional
- 所有已知子接口:
AmethystCluster
,Barrel
,Bed
,Beehive
,Bell
,BigDripleaf
,CalibratedSculkSensor
,Campfire
,Chest
,ChiseledBookshelf
,Cocoa
,CommandBlock
,Comparator
,CoralWallFan
,DecoratedPot
,Dispenser
,Door
,Dripleaf
,EnderChest
,EndPortalFrame
,Furnace
,Gate
,Grindstone
,Hopper
,Ladder
,Lectern
,LightningRod
,Observer
,PinkPetals
,Piston
,PistonHead
,RedstoneWallTorch
,Repeater
,SmallDripleaf
,Stairs
,Switch
,TechnicalPiston
,TrapDoor
,TripwireHook
,Vault
,WallHangingSign
,WallSign
'facing' 代表方块的朝向.
一些方块可能不能够面向东南西北所有方向, 可以用
一些方块可能不能够面向东南西北所有方向, 可以用
getFaces()
来获取这个方块所有可能的朝向.-
方法概要
从接口继承的方法 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
-
方法详细资料
-
getFacing
获取方块朝向属性.原文: Gets the value of the 'facing' property.
- 返回:
- 方块朝向属性
-
setFacing
设置方块的朝向.原文: Sets the value of the 'facing' property.
- 参数:
facing
- 方块的朝向
-
getFaces
获取可应用于此方块的朝向.原文: Gets the faces which are applicable to this block.
- 返回:
- 允许的朝向值
-