remove unused functions
This commit is contained in:
parent
6b7a8e2bd3
commit
4892192c6c
@ -48,10 +48,6 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
public interface MovementHelper extends ActionCosts, Helper {
|
public interface MovementHelper extends ActionCosts, Helper {
|
||||||
|
|
||||||
static boolean avoidBreaking(BetterBlockPos pos, IBlockState state) {
|
|
||||||
return avoidBreaking(pos.x, pos.y, pos.z, state);
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean avoidBreaking(int x, int y, int z, IBlockState state) {
|
static boolean avoidBreaking(int x, int y, int z, IBlockState state) {
|
||||||
Block b = state.getBlock();
|
Block b = state.getBlock();
|
||||||
return b == Blocks.ICE // ice becomes water, and water can mess up the path
|
return b == Blocks.ICE // ice becomes water, and water can mess up the path
|
||||||
@ -74,10 +70,6 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
return canWalkThrough(pos.x, pos.y, pos.z, BlockStateInterface.get(pos));
|
return canWalkThrough(pos.x, pos.y, pos.z, BlockStateInterface.get(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean canWalkThrough(BetterBlockPos pos, IBlockState state) {
|
|
||||||
return canWalkThrough(pos.x, pos.y, pos.z, state);
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean canWalkThrough(int x, int y, int z) {
|
static boolean canWalkThrough(int x, int y, int z) {
|
||||||
return canWalkThrough(x, y, z, BlockStateInterface.get(x, y, z));
|
return canWalkThrough(x, y, z, BlockStateInterface.get(x, y, z));
|
||||||
}
|
}
|
||||||
@ -139,10 +131,6 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
static boolean fullyPassable(BlockPos pos) {
|
|
||||||
return fullyPassable(BlockStateInterface.get(pos));
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean fullyPassable(int x, int y, int z) {
|
static boolean fullyPassable(int x, int y, int z) {
|
||||||
return fullyPassable(BlockStateInterface.get(x, y, z));
|
return fullyPassable(BlockStateInterface.get(x, y, z));
|
||||||
}
|
}
|
||||||
@ -170,10 +158,6 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
return block.isPassable(null, null);
|
return block.isPassable(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isReplacable(BlockPos pos, IBlockState state) {
|
|
||||||
return isReplacable(pos.getX(), pos.getY(), pos.getZ(), state);
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean isReplacable(int x, int y, int z, IBlockState state) {
|
static boolean isReplacable(int x, int y, int z, IBlockState state) {
|
||||||
// for MovementTraverse and MovementAscend
|
// for MovementTraverse and MovementAscend
|
||||||
// block double plant defaults to true when the block doesn't match, so don't need to check that case
|
// block double plant defaults to true when the block doesn't match, so don't need to check that case
|
||||||
|
Loading…
Reference in New Issue
Block a user