java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.StructureTransform

public class StructureTransform extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    net.minecraft.world.level.block.Mirror
     
    net.minecraft.core.BlockPos
     
    net.minecraft.world.level.block.Rotation
     
    net.minecraft.core.Direction.Axis
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StructureTransform(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 Type
    Method
    Description
    net.minecraft.core.BlockPos
    apply(net.minecraft.core.BlockPos localPos)
     
    void
    apply(net.minecraft.world.level.block.entity.BlockEntity te)
     
    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.
    net.minecraft.world.phys.Vec3
    apply(net.minecraft.world.phys.Vec3 localVec)
     
    net.minecraft.core.BlockPos
    applyWithoutOffset(net.minecraft.core.BlockPos localPos)
     
    net.minecraft.world.phys.Vec3
    applyWithoutOffset(net.minecraft.world.phys.Vec3 localVec)
     
    net.minecraft.world.phys.Vec3
    applyWithoutOffsetUncentered(net.minecraft.world.phys.Vec3 localVec)
     
    fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     
    net.minecraft.core.Direction.Axis
    transformAxis(net.minecraft.core.Direction.Axis axisIn)
     
    protected net.minecraft.world.level.block.state.BlockState
    transformBelt(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn)
     
    net.minecraft.core.Direction
    transformFacing(net.minecraft.core.Direction facing)
     
    protected net.minecraft.world.level.block.state.BlockState
    transformStairs(net.minecraft.world.level.block.state.BlockState state, boolean halfTurn)
     
    void
    writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • rotationAxis

      public net.minecraft.core.Direction.Axis rotationAxis
    • offset

      public net.minecraft.core.BlockPos offset
    • angle

      public int angle
    • rotation

      public net.minecraft.world.level.block.Rotation rotation
    • mirror

      public net.minecraft.world.level.block.Mirror mirror
  • 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

    • applyWithoutOffsetUncentered

      public net.minecraft.world.phys.Vec3 applyWithoutOffsetUncentered(net.minecraft.world.phys.Vec3 localVec)
    • 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

      public static StructureTransform fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • writeToBuffer

      public void writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)