Package appeng.api.util
Interface IOrientable
- All Known Subinterfaces:
IChestOrDrive,IMEChest
public interface IOrientable
Nearly all of AE's Block entities implement IOrientable.
and it can be used to manipulate the direction of some machines, most of these orientations are purely visual.
AE also responds to Block.rotateBlock
-
Method Summary
Modifier and TypeMethodDescriptionbooleannet.minecraft.core.Directionnet.minecraft.core.DirectiongetUp()voidsetOrientation(net.minecraft.core.Direction Forward, net.minecraft.core.Direction Up) Update the orientation
-
Method Details
-
canBeRotated
boolean canBeRotated()- Returns:
- true or false, if the block entity rotation is meaningful, or even changeable
-
getForward
net.minecraft.core.Direction getForward()- Returns:
- the direction the block entity is facing
-
getUp
net.minecraft.core.Direction getUp()- Returns:
- the direction top of the block entity
-
setOrientation
void setOrientation(net.minecraft.core.Direction Forward, net.minecraft.core.Direction Up) Update the orientation- Parameters:
Forward- new forward directionUp- new upwards direction
-