Class BlockStateRotateCallback
java.lang.Object
dev.latvian.mods.kubejs.block.callback.BlockStateModifyCallback
dev.latvian.mods.kubejs.block.callback.BlockStateRotateCallback
-
Constructor Summary
ConstructorsConstructorDescriptionBlockStateRotateCallback(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rotation) -
Method Summary
Methods inherited from class dev.latvian.mods.kubejs.block.callback.BlockStateModifyCallback
cycle, get, getOptionalValue, getProperties, getState, getValue, getValues, hasProperty, mirror, populateNeighbours, set, set, set, setValue, toString, updateShape
-
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:
rotatein classBlockStateModifyCallback
-
getRotation
@Info("Get the Rotation that this block is being rotated by") public net.minecraft.world.level.block.Rotation getRotation()
-