Class BlockStateRotateCallback

java.lang.Object
dev.latvian.mods.kubejs.block.callback.BlockStateModifyCallback
dev.latvian.mods.kubejs.block.callback.BlockStateRotateCallback

public class BlockStateRotateCallback extends BlockStateModifyCallback
  • Constructor Details

    • BlockStateRotateCallback

      public BlockStateRotateCallback(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rotation)
  • Method Details

    • rotate

      @Info("Rotates the specified direction") public net.minecraft.core.Direction rotate(net.minecraft.core.Direction dir)
    • rotate

      @HideFromJS public BlockStateModifyCallback rotate(net.minecraft.world.level.block.Rotation rotation)
      Overrides:
      rotate in class BlockStateModifyCallback
    • getRotation

      @Info("Get the Rotation that this block is being rotated by") public net.minecraft.world.level.block.Rotation getRotation()