@MethodsReturnNonnullByDefault public abstract static class CogwheelBlockItem.DiagonalCogHelper extends java.lang.Object implements IPlacementHelper
ID| Constructor and Description |
|---|
DiagonalCogHelper() |
| Modifier and Type | Method and Description |
|---|---|
PlacementOffset |
getOffset(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockRayTraceResult ray) |
java.util.function.Predicate<net.minecraft.block.BlockState> |
getStatePredicate() |
protected boolean |
hitOnShaft(net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockRayTraceResult ray) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisplayGhost, getItemPredicate, getOffset, matchesItem, matchesState, orderedByDistance, orderedByDistance, orderedByDistanceExceptAxis, orderedByDistanceExceptAxis, orderedByDistanceExceptAxis, orderedByDistanceExceptAxis, orderedByDistanceOnlyAxis, orderedByDistanceOnlyAxis, renderArrow, renderArrow, renderAtpublic java.util.function.Predicate<net.minecraft.block.BlockState> getStatePredicate()
getStatePredicate in interface IPlacementHelperpublic PlacementOffset getOffset(net.minecraft.entity.player.PlayerEntity player, net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockRayTraceResult ray)
getOffset in interface IPlacementHelperplayer - the player that activated the placement helperworld - the world that the placement helper got activated instate - the Blockstate of the Block that the player is looking at or clicked onpos - the position of the Block the player is looking at or clicked onray - the exact raytrace resultPlacementOffset.fail() when no new position could be found.PlacementOffset.success(Vector3i) with the new BlockPos to indicate a success
and call PlacementOffset.withTransform(Function) if the blocks default state has to be modified before it is placedprotected boolean hitOnShaft(net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockRayTraceResult ray)