Uses of Enum Class
org.geysermc.geyser.level.physics.Direction
Package
Description
-
Uses of Direction in org.geysermc.geyser.level.block
Modifier and TypeMethodDescriptionstatic Direction
BlockStateValues.getPistonOrientation(int state)
This is used in GeyserPistonEvents.java and accepts minecraft:piston, minecraft:sticky_piston, and minecraft:moving_piston.Modifier and TypeMethodDescriptionstatic int
BlockStateValues.getPistonHead(Direction direction)
Get the Java Block State for a piston head for a specific direction This is used in PistonBlockEntity to get the BlockCollision for the piston head. -
Uses of Direction in org.geysermc.geyser.level.physics
Modifier and TypeMethodDescriptionstatic Direction
Direction.fromPistonValue(com.github.steveice10.mc.protocol.data.game.level.block.value.PistonValue pistonValue)
Direction.reversed()
static Direction
Returns 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.Modifier and TypeMethodDescriptiondouble
BoundingBox.getIntersectionSize(BoundingBox otherBoundingBox, Direction side)
Get the distance required to move this bounding box to one of otherBoundingBox's sides -
Uses of Direction in org.geysermc.geyser.translator.level.block.entity
ModifierConstructorDescriptionPistonBlockEntity(GeyserSession session, com.nukkitx.math.vector.Vector3i position, Direction orientation, boolean sticky, boolean extended)