Class FacingWithSpinStrategy

java.lang.Object
appeng.api.orientation.FacingWithSpinStrategy
All Implemented Interfaces:
IOrientationStrategy

public class FacingWithSpinStrategy extends Object implements IOrientationStrategy
Extends FacingStrategy to also allow the block to be rotated around its facing axis.
  • Constructor Details

    • FacingWithSpinStrategy

      protected FacingWithSpinStrategy()
  • Method Details

    • getFacing

      public net.minecraft.core.Direction getFacing(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      getFacing in interface IOrientationStrategy
    • getSpin

      public int getSpin(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      getSpin in interface IOrientationStrategy
    • setFacing

      public net.minecraft.world.level.block.state.BlockState setFacing(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing)
      Specified by:
      setFacing in interface IOrientationStrategy
    • setSpin

      public net.minecraft.world.level.block.state.BlockState setSpin(net.minecraft.world.level.block.state.BlockState state, int spin)
      Specified by:
      setSpin in interface IOrientationStrategy
    • 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 interface IOrientationStrategy
    • getProperties

      public Collection<net.minecraft.world.level.block.state.properties.Property<?>> getProperties()
      Specified by:
      getProperties in interface IOrientationStrategy
      Returns:
      The block state properties used for storing orientation by this strategy.