Class PlacementOffset

java.lang.Object
com.simibubi.create.foundation.utility.placement.PlacementOffset

public class PlacementOffset extends Object
  • Method Details

    • fail

      public static PlacementOffset fail()
    • success

      public static PlacementOffset success()
    • success

      public static PlacementOffset success(net.minecraft.core.Vec3i pos)
    • success

      public static PlacementOffset success(net.minecraft.core.Vec3i pos, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> transform)
    • at

      public PlacementOffset at(net.minecraft.core.Vec3i pos)
    • withTransform

      public PlacementOffset withTransform(Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> stateTransform)
    • withGhostState

      public PlacementOffset withGhostState(net.minecraft.world.level.block.state.BlockState ghostState)
    • isSuccessful

      public boolean isSuccessful()
    • getPos

      public net.minecraft.core.Vec3i getPos()
    • getBlockPos

      public net.minecraft.core.BlockPos getBlockPos()
    • getTransform

      public Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> getTransform()
    • hasGhostState

      public boolean hasGhostState()
    • getGhostState

      public net.minecraft.world.level.block.state.BlockState getGhostState()
    • isReplaceable

      public boolean isReplaceable(net.minecraft.world.level.Level world)
    • placeInWorld

      public net.minecraft.world.InteractionResult placeInWorld(net.minecraft.world.level.Level world, net.minecraft.world.item.BlockItem blockItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray)