Uses of Enum Class
org.geysermc.geyser.level.physics.Direction
Packages that use Direction
Package
Description
-
Uses of Direction in org.geysermc.geyser.level.block
Methods in org.geysermc.geyser.level.block that return DirectionModifier and TypeMethodDescriptionstatic DirectionBlockStateValues.getPistonOrientation(int state)This is used in GeyserPistonEvents.java and accepts minecraft:piston, minecraft:sticky_piston, and minecraft:moving_piston.Methods in org.geysermc.geyser.level.block with parameters of type DirectionModifier and TypeMethodDescriptionstatic intBlockStateValues.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
Fields in org.geysermc.geyser.level.physics declared as DirectionMethods in org.geysermc.geyser.level.physics that return DirectionModifier and TypeMethodDescriptionstatic DirectionDirection.fromPistonValue(com.github.steveice10.mc.protocol.data.game.level.block.value.PistonValue pistonValue)Direction.reversed()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.geysermc.geyser.level.physics with parameters of type DirectionModifier and TypeMethodDescriptiondoubleBoundingBox.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
Constructors in org.geysermc.geyser.translator.level.block.entity with parameters of type DirectionModifierConstructorDescriptionPistonBlockEntity(GeyserSession session, com.nukkitx.math.vector.Vector3i position, Direction orientation, boolean sticky, boolean extended)