Uses of Enum Class
org.cloudburstmc.api.util.Direction
Packages that use Direction
Package
Description
-
Uses of Direction in org.cloudburstmc.api.block
Fields in org.cloudburstmc.api.block with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EnumBlockTrait<Direction>BlockTraits.DIRECTIONstatic final EnumBlockTrait<Direction>BlockTraits.FACING_DIRECTIONstatic final EnumBlockTrait<Direction>BlockTraits.TORCH_DIRECTIONMethods in org.cloudburstmc.api.block with parameters of type DirectionModifier and TypeMethodDescriptiondefault Blockdefault BlockStateBlock.getSideState(Direction face) default BlockStateBlock.getSideState(Direction face, int step) Block.getSideState(Direction face, int step, int layer) -
Uses of Direction in org.cloudburstmc.api.block.behavior
Methods in org.cloudburstmc.api.block.behavior with parameters of type DirectionModifier and TypeMethodDescriptionintBlockBehavior.getStrongPower(Block block, Direction side) intBlockBehavior.getWeakPower(Block block, Direction face) booleanBlockBehavior.place(ItemStack item, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player) -
Uses of Direction in org.cloudburstmc.api.blockentity
Methods in org.cloudburstmc.api.blockentity with parameters of type DirectionModifier and TypeMethodDescriptiondefault int[]ContainerBlockEntity.getHopperPushSlots(Direction direction, ItemStack item) Returns an array of slot indexes where the item should be pushed to -
Uses of Direction in org.cloudburstmc.api.entity
Methods in org.cloudburstmc.api.entity that return Direction -
Uses of Direction in org.cloudburstmc.api.event.block
Fields in org.cloudburstmc.api.event.block declared as DirectionMethods in org.cloudburstmc.api.event.block that return DirectionConstructors in org.cloudburstmc.api.event.block with parameters of type Direction -
Uses of Direction in org.cloudburstmc.api.event.player
Fields in org.cloudburstmc.api.event.player declared as DirectionMethods in org.cloudburstmc.api.event.player that return DirectionConstructors in org.cloudburstmc.api.event.player with parameters of type DirectionModifierConstructorDescriptionPlayerBucketEmptyEvent(Player who, Block blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand) PlayerBucketEvent(Player player, BlockState blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand) PlayerBucketFillEvent(Player who, BlockState blockStateClicked, Direction direction, ItemStack bucket, ItemStack itemInHand) PlayerInteractEvent(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action) PlayerInteractEvent(Player player, ItemStack item, Block block, Direction face, PlayerInteractEvent.Action action) -
Uses of Direction in org.cloudburstmc.api.item.behavior
Methods in org.cloudburstmc.api.item.behavior with parameters of type Direction -
Uses of Direction in org.cloudburstmc.api.level
Methods in org.cloudburstmc.api.level with parameters of type DirectionModifier and TypeMethodDescriptionLevel.useBreakOn(com.nukkitx.math.vector.Vector3i pos, Direction face, ItemStack item, Player player, boolean createParticles) default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos) default ItemStackLevel.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player) Level.useItemOn(com.nukkitx.math.vector.Vector3i vector, ItemStack item, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Player player, boolean playSound) -
Uses of Direction in org.cloudburstmc.api.util
Methods in org.cloudburstmc.api.util that return DirectionModifier and TypeMethodDescriptionstatic DirectionDirection.fromAxis(Direction.AxisDirection axisDirection, Direction.Axis axis) static DirectionDirection.fromHorizontalAngle(double angle) Get the BlockFace corresponding to the given angle (0-360).static DirectionDirection.fromHorizontalIndex(int index) Get a BlockFace by it's horizontal index (0-3).static DirectionDirection.fromIndex(int index) Get a BlockFace by it's index (0-5).Direction.getOpposite()Get the opposite BlockFace (e.g.Direction.Plane.random()static DirectionChoose a random BlockFace using the given RandomDirection.rotateY()Rotate this BlockFace around the Y axis clockwise (NORTH => EAST => SOUTH => WEST => BB_NORTH)Direction.rotateYCCW()Rotate this BlockFace around the Y axis counter-clockwise (NORTH => WEST => SOUTH => EAST => BB_NORTH)static DirectionReturns the enum constant of this class with the specified name.static Direction[]Direction.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.cloudburstmc.api.util that return types with arguments of type DirectionMethods in org.cloudburstmc.api.util with parameters of type Direction -
Uses of Direction in org.cloudburstmc.api.util.data
Methods in org.cloudburstmc.api.util.data that return DirectionMethods in org.cloudburstmc.api.util.data that return types with arguments of type DirectionModifier and TypeMethodDescriptionRailDirection.ascendingDirection()RailDirection.connectingDirections()com.google.common.collect.ImmutableSet<Direction>VineDirection.getDirections()Methods in org.cloudburstmc.api.util.data with parameters of type DirectionModifier and TypeMethodDescriptionstatic RailDirectionstatic RailDirectionstatic LeverDirectionLeverDirection.forDirection(Direction clickedSide, Direction playerDirection) booleanRailDirection.hasConnectingDirections(Direction... faces) static VineDirectionstatic RailDirectionstatic RailDirectionRailDirection.straightOrCurved(Direction f1, Direction f2) Method parameters in org.cloudburstmc.api.util.data with type arguments of type Direction