Class BlockUtil
java.lang.Object
com.binaris.wizardry.api.content.util.BlockUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static booleancanBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, boolean excludeLiquids) static booleancanBreak(net.minecraft.world.entity.Mob mob, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) static booleancanBreak(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, boolean powerful) static booleancanPlaceBlock(net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static @Nullable net.minecraft.core.BlockPosfindNearbyFloorSpace(net.minecraft.world.entity.Entity entity, int horizontalRange, int verticalRange) static @Nullable net.minecraft.core.BlockPosfindNearbyFloorSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos origin, int horizontalRange, int verticalRange, boolean lineOfSight) static @Nullable net.minecraft.core.BlockPosfindNearbyFloorSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos origin, int horizontalRange, int verticalRange, boolean lineOfSight, net.minecraft.world.entity.Entity entity) static booleanfreeze(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, boolean freezeLava) static List<net.minecraft.core.BlockPos>getBlockSphere(net.minecraft.core.BlockPos centre, double radius) static net.minecraft.core.Direction[]static IntegergetNearestFloor(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int range) static @Nullable IntegergetNearestSurface(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, int range, boolean doubleSided, BlockUtil.SurfaceCriteria criteria) static booleanisBlockPassable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos checkPos) static booleanisBlockUnbreakable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
-
Constructor Details
-
BlockUtil
public BlockUtil()
-
-
Method Details
-
canBlockBeReplaced
public static boolean canBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
getNearestFloor
public static Integer getNearestFloor(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int range) -
canBlockBeReplaced
public static boolean canBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, boolean excludeLiquids) -
canBreak
public static boolean canBreak(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, boolean powerful) -
canBreak
public static boolean canBreak(net.minecraft.world.entity.Mob mob, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
getHorizontals
public static net.minecraft.core.Direction[] getHorizontals() -
canPlaceBlock
public static boolean canPlaceBlock(net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
findNearbyFloorSpace
@Nullable public static @Nullable net.minecraft.core.BlockPos findNearbyFloorSpace(net.minecraft.world.entity.Entity entity, int horizontalRange, int verticalRange) -
findNearbyFloorSpace
@Nullable public static @Nullable net.minecraft.core.BlockPos findNearbyFloorSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos origin, int horizontalRange, int verticalRange, boolean lineOfSight, net.minecraft.world.entity.Entity entity) -
findNearbyFloorSpace
@Nullable public static @Nullable net.minecraft.core.BlockPos findNearbyFloorSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos origin, int horizontalRange, int verticalRange, boolean lineOfSight) -
isBlockUnbreakable
public static boolean isBlockUnbreakable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
getBlockSphere
public static List<net.minecraft.core.BlockPos> getBlockSphere(net.minecraft.core.BlockPos centre, double radius) -
getNearestSurface
@Nullable public static @Nullable Integer getNearestSurface(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, int range, boolean doubleSided, BlockUtil.SurfaceCriteria criteria) -
freeze
public static boolean freeze(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, boolean freezeLava) -
isBlockPassable
public static boolean isBlockPassable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos checkPos)
-