Uses of Enum
org.bukkit.block.BlockFace
Package
Description
Classes used to manipulate the voxels in a
world
,
including special states.Generalized BlockData classes.
Specific BlockData classes relevant to only a given block or set of blocks.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
relating to entities that hang
.Classes that represents various voxel types and states.
Classes relevant to specific material types.
Multi and single purpose classes to facilitate various programmatic
concepts.
-
Uses of BlockFace in org.bukkit.block
Modifier and TypeMethodDescriptionGets the face relation of this block compared to the given block.BlockFace.getOppositeFace()
Skull.getRotation()
Deprecated.static BlockFace
Returns the enum constant of this type with the specified name.static BlockFace[]
BlockFace.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionboolean
Block.applyBoneMeal(BlockFace face)
Simulate bone meal application to this block (if possible).int
Block.getBlockPower(BlockFace face)
Returns the redstone power being provided to this block faceBlock.getRelative(BlockFace face)
Gets the block at the given faceBlock.getRelative(BlockFace face, int distance)
Gets the block at the given distance of the given faceboolean
Block.isBlockFaceIndirectlyPowered(BlockFace face)
Returns true if the block face is being indirectly powered by Redstone.boolean
Block.isBlockFacePowered(BlockFace face)
Returns true if the block face is being powered by Redstone.void
Skull.setRotation(BlockFace rotation)
Deprecated.useBlockData
-
Uses of BlockFace in org.bukkit.block.data
Modifier and TypeMethodDescriptionDirectional.getFacing()
Gets the value of the 'facing' property.Rotatable.getRotation()
Gets the value of the 'rotation' property.Modifier and TypeMethodDescriptionMultipleFacing.getAllowedFaces()
Gets all of this faces which may be set on this block.Directional.getFaces()
Gets the faces which are applicable to this block.MultipleFacing.getFaces()
Get all of the faces which are enabled on this block.Modifier and TypeMethodDescriptionboolean
Checks if this block has the specified face enabled.void
Set whether this block has the specified face enabled.void
Sets the value of the 'facing' property.void
Rotatable.setRotation(BlockFace rotation)
Sets the value of the 'rotation' property. -
Uses of BlockFace in org.bukkit.block.data.type
Modifier and TypeMethodDescriptionPointedDripstone.getVerticalDirection()
Gets the value of the 'vertical_direction' property.Modifier and TypeMethodDescriptionRedstoneWire.getAllowedFaces()
Gets all of this faces which may be set on this block.PointedDripstone.getVerticalDirections()
Gets the faces which are applicable to this block.Modifier and TypeMethodDescriptionChecks the type of connection on the specified face.Gets the height of the specified face.void
RedstoneWire.setFace(BlockFace face, RedstoneWire.Connection connection)
Sets the type of connection on the specified face.void
Wall.setHeight(BlockFace face, Wall.Height height)
Set the height of the specified face.void
PointedDripstone.setVerticalDirection(BlockFace direction)
Sets the value of the 'vertical_direction' property. -
Uses of BlockFace in org.bukkit.entity
Modifier and TypeMethodDescriptionShulker.getAttachedFace()
Gets the face to which the shulker is attached.Entity.getFacing()
Get the closest cardinalBlockFace
direction an entity is currently facing.Modifier and TypeMethodDescriptionvoid
Shulker.setAttachedFace(BlockFace face)
Sets the face to which the shulker is attached.boolean
Hanging.setFacingDirection(BlockFace face, boolean force)
Sets the direction of the hanging entity, potentially overriding rules of placement. -
Uses of BlockFace in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockPistonEvent.getDirection()
Return the direction in which the piston will operate.BlockFromToEvent.getFace()
Gets the BlockFace that the block is moving to.ModifierConstructorDescriptionBlockFromToEvent(Block block, BlockFace face)
BlockPistonEvent(Block block, BlockFace direction)
BlockPistonExtendEvent(Block block, int length, BlockFace direction)
Deprecated.BlockPistonExtendEvent(Block block, List<Block> blocks, BlockFace direction)
BlockPistonRetractEvent(Block block, List<Block> blocks, BlockFace direction)
-
Uses of BlockFace in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityPlaceEvent.getBlockFace()
Returns the face of the block that the entity was placed onProjectileHitEvent.getHitBlockFace()
Gets the block face that was hit, if it was a block that was hit and the face was provided in the vent.ModifierConstructorDescriptionEntityPlaceEvent(Entity entity, Player player, Block block, BlockFace blockFace)
ProjectileHitEvent(Projectile projectile, Entity hitEntity, Block hitBlock, BlockFace hitFace)
-
Uses of BlockFace in org.bukkit.event.hanging
Modifier and TypeMethodDescriptionHangingPlaceEvent.getBlockFace()
Returns the face of the block that the hanging entity was placed on -
Uses of BlockFace in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerBucketEvent.getBlockFace()
Get the face on the clicked blockPlayerInteractEvent.getBlockFace()
Returns the face of the block that was clickedModifierConstructorDescriptionPlayerBucketEmptyEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketEmptyEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketFillEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace)
PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand)
-
Uses of BlockFace in org.bukkit.material
Modifier and TypeFieldDescriptionprotected static BlockFace
Comparator.DEFAULT_DIRECTION
Deprecated.protected static BlockFace
Diode.DEFAULT_DIRECTION
Deprecated.protected static BlockFace
Hopper.DEFAULT_DIRECTION
Deprecated.protected static BlockFace
Tree.DEFAULT_DIRECTION
Deprecated.Modifier and TypeMethodDescriptionStairs.getAscendingDirection()
Deprecated.Attachable.getAttachedFace()
Gets the face that this block is attached onBanner.getAttachedFace()
Deprecated.Button.getAttachedFace()
Deprecated.Gets the face that this block is attached onCocoaPlant.getAttachedFace()
Deprecated.Ladder.getAttachedFace()
Deprecated.Gets the face that this block is attached onLever.getAttachedFace()
Deprecated.Gets the face that this block is attached onPistonExtensionMaterial.getAttachedFace()
Deprecated.Sign.getAttachedFace()
Deprecated.Gets the face that this block is attached onTorch.getAttachedFace()
Deprecated.Gets the face that this block is attached onTrapDoor.getAttachedFace()
Deprecated.TripwireHook.getAttachedFace()
Deprecated.Stairs.getDescendingDirection()
Deprecated.Rails.getDirection()
Deprecated.Tree.getDirection()
Deprecated.Get direction of the logBanner.getFacing()
Deprecated.Bed.getFacing()
Deprecated.Get the direction that this bed's head is facing towardCocoaPlant.getFacing()
Deprecated.Comparator.getFacing()
Deprecated.Gets the direction this comparator is facingDiode.getFacing()
Deprecated.Gets the direction this diode is facingDirectional.getFacing()
Gets the direction this block is facingDirectionalContainer.getFacing()
Deprecated.Dispenser.getFacing()
Deprecated.Door.getFacing()
Deprecated.Get the direction that this door is facing.Gate.getFacing()
Deprecated.Hopper.getFacing()
Deprecated.Gets the direction this hopper is facingObserver.getFacing()
Deprecated.PistonBaseMaterial.getFacing()
Deprecated.PistonExtensionMaterial.getFacing()
Deprecated.Pumpkin.getFacing()
Deprecated.Sign.getFacing()
Deprecated.Gets the direction that this sign is currently facingSimpleAttachableMaterialData.getFacing()
Deprecated.Skull.getFacing()
Deprecated.Stairs.getFacing()
Deprecated.Door.getHingeCorner()
Deprecated.This method should not be used; use hinge and facing accessors instead.Modifier and TypeMethodDescriptionboolean
Mushroom.isFacePainted(BlockFace face)
Deprecated.Checks whether a face of the block is painted with cap texture.boolean
Deprecated.Check if the vine is attached to the specified face of an adjacent block.void
Deprecated.Attach the vine to the specified face of an adjacent block.void
Vine.removeFromFace(BlockFace face)
Deprecated.Detach the vine from the specified face of an adjacent block.void
ExtendedRails.setDirection(BlockFace face, boolean isOnSlope)
Deprecated.void
Rails.setDirection(BlockFace face, boolean isOnSlope)
Deprecated.Set the direction of these tracksvoid
Tree.setDirection(BlockFace dir)
Deprecated.Set direction of the logvoid
Mushroom.setFacePainted(BlockFace face, boolean painted)
Deprecated.Use MushroomBlockType cap optionsvoid
Banner.setFacingDirection(BlockFace face)
Deprecated.void
Bed.setFacingDirection(BlockFace face)
Deprecated.Set which direction the head of the bed is facing.void
Button.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this button is pointing towardvoid
CocoaPlant.setFacingDirection(BlockFace face)
Deprecated.void
Comparator.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this comparator is facingvoid
Diode.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this diode is facing.void
Directional.setFacingDirection(BlockFace face)
Sets the direction that this block is facing invoid
DirectionalContainer.setFacingDirection(BlockFace face)
Deprecated.void
Dispenser.setFacingDirection(BlockFace face)
Deprecated.void
Door.setFacingDirection(BlockFace face)
Deprecated.Set the direction that this door should is facing.void
Gate.setFacingDirection(BlockFace face)
Deprecated.void
Hopper.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this hopper is facingvoid
Ladder.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this ladder is facingvoid
Lever.setFacingDirection(BlockFace face)
Deprecated.Sets the direction this lever is pointing invoid
Observer.setFacingDirection(BlockFace face)
Deprecated.void
PistonBaseMaterial.setFacingDirection(BlockFace face)
Deprecated.void
PistonExtensionMaterial.setFacingDirection(BlockFace face)
Deprecated.void
Pumpkin.setFacingDirection(BlockFace face)
Deprecated.void
Sign.setFacingDirection(BlockFace face)
Deprecated.void
Skull.setFacingDirection(BlockFace face)
Deprecated.void
Stairs.setFacingDirection(BlockFace face)
Deprecated.Set the direction the stair part of the block is facingvoid
Torch.setFacingDirection(BlockFace face)
Deprecated.void
TrapDoor.setFacingDirection(BlockFace face)
Deprecated.void
TripwireHook.setFacingDirection(BlockFace face)
Deprecated.ModifierConstructorDescriptionDeprecated.Instantiate a bed facing in a particular direction.Deprecated.Instantiate a chest facing in a particular direction.CocoaPlant(CocoaPlant.CocoaPlantSize sz, BlockFace dir)
Deprecated.Comparator(BlockFace facingDirection)
Deprecated.Constructs a comparator switched off, with the default mode (normal) and facing the specified direction.Comparator(BlockFace facingDirection, boolean isSubtraction)
Deprecated.Constructs a comparator switched off, with the specified mode and facing the specified direction.Comparator(BlockFace facingDirection, boolean isSubtraction, boolean state)
Deprecated.Constructs a comparator switched on or off, with the specified mode and facing the specified direction.Deprecated.Constructs a diode switched off, with a delay of 1 and facing the specified direction.Deprecated.Constructs a diode switched off, with the specified delay and facing the specified direction.Deprecated.Constructs a diode switched on or off, with the specified delay and facing the specified direction.Deprecated.Deprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to closedDeprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closedDoor(TreeSpecies species, BlockFace face)
Deprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to closedDoor(TreeSpecies species, BlockFace face, boolean isOpen)
Deprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to open or closedEnderChest(BlockFace direction)
Deprecated.Instantiate an ender chest facing in a particular direction.Deprecated.Instantiate a furnace facing in a particular direction.Deprecated.Constructs a hopper facing the specified direction and initially active.Deprecated.Constructs a hopper facing the specified direction and either active or not.Deprecated.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.Deprecated.Deprecated.Instantiate a pumpkin facing in a particular direction.SimpleAttachableMaterialData(Material type, BlockFace direction)
Deprecated.Deprecated.Instantiate a skull facing in a particular direction.Tree(Material type, TreeSpecies species, BlockFace dir)
Deprecated.Constructs a tree block of the given type and tree species, and facing the given direction.Tree(TreeSpecies species, BlockFace dir)
Deprecated.Constructs a tree block of the given tree species, and facing the given direction.TripwireHook(BlockFace dir)
Deprecated.Deprecated. -
Uses of BlockFace in org.bukkit.material.types
Modifier and TypeMethodDescriptionMushroomBlockTexture.getCapFace()
Gets the face that has cap texture.Modifier and TypeMethodDescriptionstatic MushroomBlockTexture
MushroomBlockTexture.getCapByFace(BlockFace face)
Gets the MushroomBlockType with cap texture on the given block face. -
Uses of BlockFace in org.bukkit.util
Modifier and TypeMethodDescriptionExpands this bounding box in the direction specified by the given block face.ModifierConstructorDescriptionRayTraceResult(Vector hitPosition, BlockFace hitBlockFace)
Creates a RayTraceResult.RayTraceResult(Vector hitPosition, Block hitBlock, BlockFace hitBlockFace)
Creates a RayTraceResult.RayTraceResult(Vector hitPosition, Entity hitEntity, BlockFace hitBlockFace)
Creates a RayTraceResult.
BlockData