Package appeng.api.orientation
Class HorizontalFacingStrategy
java.lang.Object
appeng.api.orientation.FacingStrategy
appeng.api.orientation.HorizontalFacingStrategy
- All Implemented Interfaces:
IOrientationStrategy
Implements a strategy that allows blocks to be oriented using a single directional property. It doesn't allow up and
down, and uses the player facing instead in those cases.
-
Field Summary
Fields inherited from interface appeng.api.orientation.IOrientationStrategy
SPIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockState
getStateForPlacement
(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext context) Methods inherited from class appeng.api.orientation.FacingStrategy
allowsPlayerRotation, getFacing, getProperties, setFacing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface appeng.api.orientation.IOrientationStrategy
getAllStates, getSide, getSpin, setOrientation, setOrientation, setSpin, setUp
-
Constructor Details
-
HorizontalFacingStrategy
protected HorizontalFacingStrategy()
-
-
Method Details
-
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext context) - Specified by:
getStateForPlacement
in interfaceIOrientationStrategy
- Overrides:
getStateForPlacement
in classFacingStrategy
-