Class BlockUtil

java.lang.Object
com.binaris.wizardry.api.content.util.BlockUtil

public final class BlockUtil extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    static boolean
    canBlockBeReplaced(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, boolean excludeLiquids)
     
    static boolean
    canBreak(net.minecraft.world.entity.Mob mob, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    static boolean
    canBreak(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, boolean powerful)
     
    static boolean
    canPlaceBlock(net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     
    static @Nullable net.minecraft.core.BlockPos
    findNearbyFloorSpace(net.minecraft.world.entity.Entity entity, int horizontalRange, int verticalRange)
     
    static @Nullable net.minecraft.core.BlockPos
    findNearbyFloorSpace(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos origin, int horizontalRange, int verticalRange, boolean lineOfSight)
     
    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)
     
    static boolean
    freeze(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 Integer
    getNearestFloor(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int range)
     
    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)
     
    static boolean
    isBlockPassable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos checkPos)
     
    static boolean
    isBlockUnbreakable(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)