public class BlockMovementChecks
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlockMovementChecks.AllChecks |
static interface |
BlockMovementChecks.AttachedCheck |
static interface |
BlockMovementChecks.BrittleCheck |
static class |
BlockMovementChecks.CheckResult |
static interface |
BlockMovementChecks.MovementAllowedCheck |
static interface |
BlockMovementChecks.MovementNecessaryCheck |
static interface |
BlockMovementChecks.NotSupportiveCheck |
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.ResourceLocation |
NON_MOVABLE |
| Constructor and Description |
|---|
BlockMovementChecks() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlockAttachedTowards(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
Attached blocks will move if blocks they are attached to are moved
|
static boolean |
isBrittle(net.minecraft.block.BlockState state)
Brittle blocks will be collected first, as they may break when other blocks
are removed before them
|
static boolean |
isMovementAllowed(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isMovementNecessary(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isNotSupportive(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing)
Non-Supportive blocks will not continue a chain of blocks picked up by e.g.
|
static void |
registerAllChecks(BlockMovementChecks.AllChecks checks) |
static void |
registerAttachedCheck(BlockMovementChecks.AttachedCheck check) |
static void |
registerBrittleCheck(BlockMovementChecks.BrittleCheck check) |
static void |
registerMovementAllowedCheck(BlockMovementChecks.MovementAllowedCheck check) |
static void |
registerMovementNecessaryCheck(BlockMovementChecks.MovementNecessaryCheck check) |
static void |
registerNotSupportiveCheck(BlockMovementChecks.NotSupportiveCheck check) |
public static void registerMovementNecessaryCheck(BlockMovementChecks.MovementNecessaryCheck check)
public static void registerMovementAllowedCheck(BlockMovementChecks.MovementAllowedCheck check)
public static void registerBrittleCheck(BlockMovementChecks.BrittleCheck check)
public static void registerAttachedCheck(BlockMovementChecks.AttachedCheck check)
public static void registerNotSupportiveCheck(BlockMovementChecks.NotSupportiveCheck check)
public static void registerAllChecks(BlockMovementChecks.AllChecks checks)
public static boolean isMovementNecessary(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public static boolean isMovementAllowed(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public static boolean isBrittle(net.minecraft.block.BlockState state)
public static boolean isBlockAttachedTowards(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
public static boolean isNotSupportive(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing)