Class StructureTransform
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.StructureTransform
-
Constructor Summary
ConstructorsConstructorDescriptionStructureTransform(net.minecraft.core.BlockPos offset, float xRotation, float yRotation, float zRotation) StructureTransform(net.minecraft.core.BlockPos offset, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosapply(net.minecraft.core.BlockPos localPos) voidapply(net.minecraft.world.level.block.entity.BlockEntity te) net.minecraft.world.level.block.state.BlockStateapply(net.minecraft.world.level.block.state.BlockState state) Minecraft does not support blockstate rotation around axes other than y.net.minecraft.world.phys.Vec3apply(net.minecraft.world.phys.Vec3 localVec) net.minecraft.core.BlockPosapplyWithoutOffset(net.minecraft.core.BlockPos localPos) net.minecraft.world.phys.Vec3applyWithoutOffset(net.minecraft.world.phys.Vec3 localVec) static StructureTransformfromBuffer(net.minecraft.network.FriendlyByteBuf buffer) net.minecraft.core.Direction.AxistransformAxis(net.minecraft.core.Direction.Axis axisIn) protected net.minecraft.world.level.block.state.BlockStatetransformBelt(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn) net.minecraft.core.DirectiontransformFacing(net.minecraft.core.Direction facing) protected net.minecraft.world.level.block.state.BlockStatetransformStairs(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn) voidwriteToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
-
Constructor Details
-
StructureTransform
public StructureTransform(net.minecraft.core.BlockPos offset, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) -
StructureTransform
public StructureTransform(net.minecraft.core.BlockPos offset, float xRotation, float yRotation, float zRotation)
-
-
Method Details
-
applyWithoutOffset
public net.minecraft.world.phys.Vec3 applyWithoutOffset(net.minecraft.world.phys.Vec3 localVec) -
apply
public net.minecraft.world.phys.Vec3 apply(net.minecraft.world.phys.Vec3 localVec) -
applyWithoutOffset
public net.minecraft.core.BlockPos applyWithoutOffset(net.minecraft.core.BlockPos localPos) -
apply
public net.minecraft.core.BlockPos apply(net.minecraft.core.BlockPos localPos) -
apply
public void apply(net.minecraft.world.level.block.entity.BlockEntity te) -
apply
public net.minecraft.world.level.block.state.BlockState apply(net.minecraft.world.level.block.state.BlockState state) Minecraft does not support blockstate rotation around axes other than y. Add specific cases here for blockstates, that should react to rotations around horizontal axes -
transformStairs
protected net.minecraft.world.level.block.state.BlockState transformStairs(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn) -
transformBelt
protected net.minecraft.world.level.block.state.BlockState transformBelt(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn) -
transformAxis
public net.minecraft.core.Direction.Axis transformAxis(net.minecraft.core.Direction.Axis axisIn) -
transformFacing
public net.minecraft.core.Direction transformFacing(net.minecraft.core.Direction facing) -
fromBuffer
-
writeToBuffer
public void writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
-