Class PlacementOffset
java.lang.Object
com.simibubi.create.foundation.utility.placement.PlacementOffset
-
Method Summary
Modifier and TypeMethodDescriptionat(net.minecraft.core.Vec3i pos) static PlacementOffsetfail()net.minecraft.core.BlockPosnet.minecraft.world.level.block.state.BlockStatenet.minecraft.core.Vec3igetPos()Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.block.state.BlockState> booleanbooleanisReplaceable(net.minecraft.world.level.Level world) booleannet.minecraft.world.InteractionResultplaceInWorld(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) static PlacementOffsetsuccess()static PlacementOffsetsuccess(net.minecraft.core.Vec3i pos) static PlacementOffsetsuccess(net.minecraft.core.Vec3i pos, Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> transform) withGhostState(net.minecraft.world.level.block.state.BlockState ghostState) withTransform(Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> stateTransform)
-
Method Details
-
fail
-
success
-
success
-
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
-
withTransform
public PlacementOffset withTransform(Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.block.state.BlockState> stateTransform) -
withGhostState
-
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)
-