Class BlockStateMirrorCallback
java.lang.Object
dev.latvian.mods.kubejs.block.callback.BlockStateModifyCallback
dev.latvian.mods.kubejs.block.callback.BlockStateMirrorCallback
-
Constructor Summary
ConstructorsConstructorDescriptionBlockStateMirrorCallback(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Mirror mirror) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Mirrornet.minecraft.world.level.block.RotationgetRotation(net.minecraft.core.Direction dir) net.minecraft.core.Directionmirror(net.minecraft.core.Direction dir) mirror(net.minecraft.world.level.block.Mirror mirror) Methods inherited from class dev.latvian.mods.kubejs.block.callback.BlockStateModifyCallback
cycle, get, getOptionalValue, getProperties, getState, getValue, getValues, hasProperty, populateNeighbours, rotate, set, set, set, setValue, toString, updateShape
-
Constructor Details
-
BlockStateMirrorCallback
public BlockStateMirrorCallback(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Mirror mirror)
-
-
Method Details
-
mirror
@Info("Mirrors the direction passed in") public net.minecraft.core.Direction mirror(net.minecraft.core.Direction dir) -
mirror
- Overrides:
mirrorin classBlockStateModifyCallback
-
getRotation
@Info("Gets the rotation of the direction passed in relative to this mirror") public net.minecraft.world.level.block.Rotation getRotation(net.minecraft.core.Direction dir) -
getMirror
-