Package org.bukkit.block.data.type
Interface RedstoneWire
- All Superinterfaces:
AnaloguePowerable
,BlockData
,Cloneable
'north', 'east', 'south', 'west' represent the types of connections this
redstone wire has to adjacent blocks.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The way in which a redstone wire can connect to an adjacent block face. -
Method Summary
Modifier and TypeMethodDescriptionGets all of this faces which may be set on this block.Checks the type of connection on the specified face.void
setFace
(BlockFace face, RedstoneWire.Connection connection) Sets the type of connection on the specified face.Methods inherited from interface org.bukkit.block.data.AnaloguePowerable
getMaximumPower, getPower, setPower
Methods inherited from interface 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
-
Method Details
-
getFace
Checks the type of connection on the specified face.- Parameters:
face
- to check- Returns:
- connection type
-
setFace
Sets the type of connection on the specified face.- Parameters:
face
- to setconnection
- the connection type
-
getAllowedFaces
Gets all of this faces which may be set on this block.- Returns:
- all allowed faces
-