Uses of Class
org.bukkit.block.BlockFace
-
Packages that use BlockFace Package Description org.bukkit.block Classes used to manipulate the voxels in aworld, including special states.org.bukkit.block.data Generalized BlockData classes.org.bukkit.block.data.type Specific BlockData classes relevant to only a given block or set of blocks.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.event.block org.bukkit.event.entity org.bukkit.event.hanging Eventsrelating toentities that hang.org.bukkit.event.player org.bukkit.material Classes that represents various voxel types and states.org.bukkit.material.types Classes relevant to specific material types.org.bukkit.util Multi and single purpose classes to facilitate various programmatic concepts. -
-
Uses of BlockFace in org.bukkit.block
Methods in org.bukkit.block that return BlockFace Modifier and Type Method Description @Nullable BlockFaceBlock. getFace(@NotNull Block block)Gets the face relation of this block compared to the given block.@NotNull BlockFaceBlockFace. getOppositeFace()@NotNull BlockFaceSkull. getRotation()Deprecated.useBlockDatastatic BlockFaceBlockFace. valueOf(String name)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.Methods in org.bukkit.block with parameters of type BlockFace Modifier and Type Method Description intBlock. getBlockPower(@NotNull BlockFace face)Returns the redstone power being provided to this block face@NotNull BlockBlock. getRelative(@NotNull BlockFace face)Gets the block at the given face@NotNull BlockBlock. getRelative(@NotNull BlockFace face, int distance)Gets the block at the given distance of the given facebooleanBlock. isBlockFaceIndirectlyPowered(@NotNull BlockFace face)Returns true if the block face is being indirectly powered by Redstone.booleanBlock. isBlockFacePowered(@NotNull BlockFace face)Returns true if the block face is being powered by Redstone.voidSkull. setRotation(@NotNull BlockFace rotation)Deprecated.useBlockData -
Uses of BlockFace in org.bukkit.block.data
Methods in org.bukkit.block.data that return BlockFace Modifier and Type Method Description @NotNull BlockFaceDirectional. getFacing()Gets the value of the 'facing' property.@NotNull BlockFaceRotatable. getRotation()Gets the value of the 'rotation' property.Methods in org.bukkit.block.data that return types with arguments of type BlockFace Modifier and Type Method Description @NotNull Set<BlockFace>MultipleFacing. getAllowedFaces()Gets all of this faces which may be set on this block.@NotNull Set<BlockFace>Directional. getFaces()Gets the faces which are applicable to this block.@NotNull Set<BlockFace>MultipleFacing. getFaces()Get all of the faces which are enabled on this block.Methods in org.bukkit.block.data with parameters of type BlockFace Modifier and Type Method Description booleanMultipleFacing. hasFace(@NotNull BlockFace face)Checks if this block has the specified face enabled.voidMultipleFacing. setFace(@NotNull BlockFace face, boolean has)Set whether this block has the specified face enabled.voidDirectional. setFacing(@NotNull BlockFace facing)Sets the value of the 'facing' property.voidRotatable. setRotation(@NotNull BlockFace rotation)Sets the value of the 'rotation' property. -
Uses of BlockFace in org.bukkit.block.data.type
Methods in org.bukkit.block.data.type that return types with arguments of type BlockFace Modifier and Type Method Description @NotNull Set<BlockFace>RedstoneWire. getAllowedFaces()Gets all of this faces which may be set on this block.Methods in org.bukkit.block.data.type with parameters of type BlockFace Modifier and Type Method Description @NotNull RedstoneWire.ConnectionRedstoneWire. getFace(@NotNull BlockFace face)Checks the type of connection on the specified face.voidRedstoneWire. setFace(@NotNull BlockFace face, @NotNull RedstoneWire.Connection connection)Sets the type of connection on the specified face. -
Uses of BlockFace in org.bukkit.entity
Methods in org.bukkit.entity that return BlockFace Modifier and Type Method Description @NotNull BlockFaceEntity. getFacing()Get the closest cardinalBlockFacedirection an entity is currently facing.Methods in org.bukkit.entity with parameters of type BlockFace Modifier and Type Method Description booleanHanging. setFacingDirection(@NotNull BlockFace face, boolean force)Sets the direction of the hanging entity, potentially overriding rules of placement. -
Uses of BlockFace in org.bukkit.event.block
Fields in org.bukkit.event.block declared as BlockFace Modifier and Type Field Description protected BlockFaceBlockFromToEvent. faceMethods in org.bukkit.event.block that return BlockFace Modifier and Type Method Description @NotNull BlockFaceBlockPistonEvent. getDirection()Return the direction in which the piston will operate.@NotNull BlockFaceBlockFromToEvent. getFace()Gets the BlockFace that the block is moving to.Constructors in org.bukkit.event.block with parameters of type BlockFace Constructor Description BlockFromToEvent(@NotNull Block block, @NotNull BlockFace face)BlockPistonEvent(@NotNull Block block, @NotNull BlockFace direction)BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)Deprecated.BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction) -
Uses of BlockFace in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return BlockFace Modifier and Type Method Description @NotNull BlockFaceEntityPlaceEvent. getBlockFace()Deprecated.Returns the face of the block that the entity was placed on@Nullable BlockFaceProjectileHitEvent. getHitBlockFace()Gets the block face that was hit, if it was a block that was hit and the face was provided in the vent.Constructors in org.bukkit.event.entity with parameters of type BlockFace Constructor Description EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)Deprecated.ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace) -
Uses of BlockFace in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return BlockFace Modifier and Type Method Description @NotNull BlockFaceHangingPlaceEvent. getBlockFace()Returns the face of the block that the hanging entity was placed onConstructors in org.bukkit.event.hanging with parameters of type BlockFace Constructor Description HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace) -
Uses of BlockFace in org.bukkit.event.player
Fields in org.bukkit.event.player declared as BlockFace Modifier and Type Field Description protected BlockFacePlayerInteractEvent. blockFaceMethods in org.bukkit.event.player that return BlockFace Modifier and Type Method Description @NotNull BlockFacePlayerBucketEvent. getBlockFace()Get the face on the clicked block@NotNull BlockFacePlayerInteractEvent. getBlockFace()Returns the face of the block that was clickedConstructors in org.bukkit.event.player with parameters of type BlockFace Constructor Description PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)Deprecated.PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)Deprecated.PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)Deprecated.PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace)PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand) -
Uses of BlockFace in org.bukkit.material
Fields in org.bukkit.material declared as BlockFace Modifier and Type Field Description protected static BlockFaceComparator. DEFAULT_DIRECTIONDeprecated.protected static BlockFaceDiode. DEFAULT_DIRECTIONDeprecated.protected static BlockFaceHopper. DEFAULT_DIRECTIONDeprecated.protected static BlockFaceTree. DEFAULT_DIRECTIONDeprecated.Methods in org.bukkit.material that return BlockFace Modifier and Type Method Description BlockFaceStairs. getAscendingDirection()Deprecated.@NotNull BlockFaceAttachable. getAttachedFace()Gets the face that this block is attached onBlockFaceBanner. getAttachedFace()Deprecated.BlockFaceButton. getAttachedFace()Deprecated.Gets the face that this block is attached onBlockFaceCocoaPlant. getAttachedFace()Deprecated.BlockFaceLadder. getAttachedFace()Deprecated.Gets the face that this block is attached onBlockFaceLever. getAttachedFace()Deprecated.Gets the face that this block is attached onBlockFacePistonExtensionMaterial. getAttachedFace()Deprecated.BlockFaceSign. getAttachedFace()Deprecated.Gets the face that this block is attached onBlockFaceTorch. getAttachedFace()Deprecated.Gets the face that this block is attached onBlockFaceTrapDoor. getAttachedFace()Deprecated.BlockFaceTripwireHook. getAttachedFace()Deprecated.BlockFaceStairs. getDescendingDirection()Deprecated.BlockFaceRails. getDirection()Deprecated.BlockFaceTree. getDirection()Deprecated.Get direction of the logBlockFaceBanner. getFacing()Deprecated.BlockFaceBed. getFacing()Deprecated.Get the direction that this bed's head is facing towardBlockFaceCocoaPlant. getFacing()Deprecated.BlockFaceComparator. getFacing()Deprecated.Gets the direction this comparator is facingBlockFaceDiode. getFacing()Deprecated.Gets the direction this diode is facing@NotNull BlockFaceDirectional. getFacing()Gets the direction this block is facingBlockFaceDirectionalContainer. getFacing()Deprecated.BlockFaceDispenser. getFacing()Deprecated.BlockFaceDoor. getFacing()Deprecated.Get the direction that this door is facing.BlockFaceGate. getFacing()Deprecated.BlockFaceHopper. getFacing()Deprecated.Gets the direction this hopper is facingBlockFaceObserver. getFacing()Deprecated.BlockFacePistonBaseMaterial. getFacing()Deprecated.BlockFacePistonExtensionMaterial. getFacing()Deprecated.BlockFacePumpkin. getFacing()Deprecated.BlockFaceSign. getFacing()Deprecated.Gets the direction that this sign is currently facingBlockFaceSimpleAttachableMaterialData. getFacing()Deprecated.BlockFaceSkull. getFacing()Deprecated.BlockFaceStairs. getFacing()Deprecated.BlockFaceDoor. getHingeCorner()Deprecated.This method should not be used; use hinge and facing accessors instead.Methods in org.bukkit.material that return types with arguments of type BlockFace Modifier and Type Method Description Set<BlockFace>Mushroom. getPaintedFaces()Deprecated.Methods in org.bukkit.material with parameters of type BlockFace Modifier and Type Method Description booleanMushroom. isFacePainted(BlockFace face)Deprecated.Checks whether a face of the block is painted with cap texture.booleanVine. isOnFace(BlockFace face)Deprecated.Check if the vine is attached to the specified face of an adjacent block.voidVine. putOnFace(BlockFace face)Deprecated.Attach the vine to the specified face of an adjacent block.voidVine. removeFromFace(BlockFace face)Deprecated.Detach the vine from the specified face of an adjacent block.voidExtendedRails. setDirection(BlockFace face, boolean isOnSlope)Deprecated.voidRails. setDirection(BlockFace face, boolean isOnSlope)Deprecated.Set the direction of these tracksvoidTree. setDirection(BlockFace dir)Deprecated.Set direction of the logvoidMushroom. setFacePainted(BlockFace face, boolean painted)Deprecated.Use MushroomBlockType cap optionsvoidBanner. setFacingDirection(BlockFace face)Deprecated.voidBed. setFacingDirection(BlockFace face)Deprecated.Set which direction the head of the bed is facing.voidButton. setFacingDirection(BlockFace face)Deprecated.Sets the direction this button is pointing towardvoidCocoaPlant. setFacingDirection(BlockFace face)Deprecated.voidComparator. setFacingDirection(BlockFace face)Deprecated.Sets the direction this comparator is facingvoidDiode. setFacingDirection(BlockFace face)Deprecated.Sets the direction this diode is facing.voidDirectional. setFacingDirection(@NotNull BlockFace face)Sets the direction that this block is facing invoidDirectionalContainer. setFacingDirection(BlockFace face)Deprecated.voidDispenser. setFacingDirection(BlockFace face)Deprecated.voidDoor. setFacingDirection(BlockFace face)Deprecated.Set the direction that this door should is facing.voidGate. setFacingDirection(BlockFace face)Deprecated.voidHopper. setFacingDirection(BlockFace face)Deprecated.Sets the direction this hopper is facingvoidLadder. setFacingDirection(BlockFace face)Deprecated.Sets the direction this ladder is facingvoidLever. setFacingDirection(BlockFace face)Deprecated.Sets the direction this lever is pointing invoidObserver. setFacingDirection(BlockFace face)Deprecated.voidPistonBaseMaterial. setFacingDirection(BlockFace face)Deprecated.voidPistonExtensionMaterial. setFacingDirection(BlockFace face)Deprecated.voidPumpkin. setFacingDirection(BlockFace face)Deprecated.voidSign. setFacingDirection(BlockFace face)Deprecated.voidSkull. setFacingDirection(BlockFace face)Deprecated.voidStairs. setFacingDirection(BlockFace face)Deprecated.Set the direction the stair part of the block is facingvoidTorch. setFacingDirection(BlockFace face)Deprecated.voidTrapDoor. setFacingDirection(BlockFace face)Deprecated.voidTripwireHook. setFacingDirection(BlockFace face)Deprecated.Constructors in org.bukkit.material with parameters of type BlockFace Constructor Description Bed(BlockFace direction)Deprecated.Instantiate a bed facing in a particular direction.Chest(BlockFace 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.Diode(BlockFace facingDirection)Deprecated.Constructs a diode switched off, with a delay of 1 and facing the specified direction.Diode(BlockFace facingDirection, int delay)Deprecated.Constructs a diode switched off, with the specified delay and facing the specified direction.Diode(BlockFace facingDirection, int delay, boolean state)Deprecated.Constructs a diode switched on or off, with the specified delay and facing the specified direction.Dispenser(BlockFace direction)Deprecated.Door(Material type, BlockFace face)Deprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to closedDoor(Material type, BlockFace face, boolean isOpen)Deprecated.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.Furnace(BlockFace direction)Deprecated.Instantiate a furnace facing in a particular direction.Hopper(BlockFace facingDirection)Deprecated.Constructs a hopper facing the specified direction and initially active.Hopper(BlockFace facingDirection, boolean isActive)Deprecated.Constructs a hopper facing the specified direction and either active or not.Mushroom(Material shroom, BlockFace capFace)Deprecated.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.Observer(BlockFace direction)Deprecated.Pumpkin(BlockFace direction)Deprecated.Instantiate a pumpkin facing in a particular direction.SimpleAttachableMaterialData(Material type, BlockFace direction)Deprecated.Skull(BlockFace direction)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.Vine(BlockFace... faces)Deprecated.Constructor parameters in org.bukkit.material with type arguments of type BlockFace Constructor Description Vine(EnumSet<BlockFace> faces)Deprecated. -
Uses of BlockFace in org.bukkit.material.types
Methods in org.bukkit.material.types that return BlockFace Modifier and Type Method Description @Nullable BlockFaceMushroomBlockTexture. getCapFace()Gets the face that has cap texture.Methods in org.bukkit.material.types with parameters of type BlockFace Modifier and Type Method Description static @Nullable MushroomBlockTextureMushroomBlockTexture. getCapByFace(@Nullable BlockFace face)Gets the MushroomBlockType with cap texture on the given block face. -
Uses of BlockFace in org.bukkit.util
Methods in org.bukkit.util that return BlockFace Modifier and Type Method Description @Nullable BlockFaceRayTraceResult. getHitBlockFace()Gets the hit block face.Methods in org.bukkit.util with parameters of type BlockFace Modifier and Type Method Description @NotNull BoundingBoxBoundingBox. expand(@NotNull BlockFace blockFace, double expansion)Expands this bounding box in the direction specified by the given block face.Constructors in org.bukkit.util with parameters of type BlockFace Constructor Description RayTraceResult(@NotNull Vector hitPosition, @Nullable BlockFace hitBlockFace)Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Block hitBlock, @Nullable BlockFace hitBlockFace)Creates a RayTraceResult.RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity, @Nullable BlockFace hitBlockFace)Creates a RayTraceResult.
-