Class BlockUtils

java.lang.Object
meteordevelopment.meteorclient.utils.world.BlockUtils

public class BlockUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    breakBlock(net.minecraft.core.BlockPos blockPos, boolean swing)
    Needs to be used in TickEvent.Pre
    static float
    calcBlockBreakingDelta2(net.minecraft.core.BlockPos blockPos, float breakSpeed)
     
    static boolean
    canBreak(net.minecraft.core.BlockPos blockPos)
     
    static boolean
    canBreak(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    canInstaBreak(net.minecraft.core.BlockPos blockPos)
     
    static boolean
    canInstaBreak(net.minecraft.core.BlockPos blockPos, float breakSpeed)
     
    static boolean
    canPlace(net.minecraft.core.BlockPos blockPos)
     
    static boolean
    canPlace(net.minecraft.core.BlockPos blockPos, boolean checkEntities)
     
    static boolean
    canPlaceBlock(net.minecraft.core.BlockPos blockPos, boolean checkEntities, net.minecraft.world.level.block.Block block)
     
    static double
    getBreakDelta(int slot, net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.core.Direction
    getClosestPlaceSide(net.minecraft.core.BlockPos blockPos)
     
    static net.minecraft.core.Direction
    getClosestPlaceSide(net.minecraft.core.BlockPos blockPos, net.minecraft.world.phys.Vec3 pos)
     
    static net.minecraft.core.Direction
    getDirection(net.minecraft.core.BlockPos pos)
     
    static net.minecraft.core.Direction
    getPlaceSide(net.minecraft.core.BlockPos blockPos)
     
    static void
     
    static void
    interact(net.minecraft.world.phys.BlockHitResult blockHitResult, net.minecraft.world.InteractionHand hand, boolean swing)
     
    static boolean
    isClickable(net.minecraft.world.level.block.Block block)
     
    static boolean
    isExposed(net.minecraft.core.BlockPos blockPos)
     
    isValidMobSpawn(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState, int spawnLightLimit)
     
    static boolean
    isValidSpawnBlock(net.minecraft.world.level.block.state.BlockState blockState)
     
    static net.minecraft.core.BlockPos.MutableBlockPos
    mutateAround(net.minecraft.core.BlockPos.MutableBlockPos mutable, net.minecraft.core.BlockPos origin, int xOffset, int yOffset, int zOffset)
    Mutates a BlockPos.MutableBlockPos around an origin
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean checkEntities)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities, boolean swapBack)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, int rotationPriority)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, int rotationPriority, boolean checkEntities)
     
    static boolean
    place(net.minecraft.core.BlockPos blockPos, net.minecraft.world.InteractionHand hand, int slot, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities, boolean swapBack)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • breaking

      public static boolean breaking
  • Method Details

    • init

      public static void init()
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, int rotationPriority)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean checkEntities)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, int rotationPriority, boolean checkEntities)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, FindItemResult findItemResult, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities, boolean swapBack)
    • place

      public static boolean place(net.minecraft.core.BlockPos blockPos, net.minecraft.world.InteractionHand hand, int slot, boolean rotate, int rotationPriority, boolean swingHand, boolean checkEntities, boolean swapBack)
    • interact

      public static void interact(net.minecraft.world.phys.BlockHitResult blockHitResult, net.minecraft.world.InteractionHand hand, boolean swing)
    • canPlaceBlock

      public static boolean canPlaceBlock(net.minecraft.core.BlockPos blockPos, boolean checkEntities, net.minecraft.world.level.block.Block block)
    • canPlace

      public static boolean canPlace(net.minecraft.core.BlockPos blockPos, boolean checkEntities)
    • canPlace

      public static boolean canPlace(net.minecraft.core.BlockPos blockPos)
    • getPlaceSide

      public static net.minecraft.core.Direction getPlaceSide(net.minecraft.core.BlockPos blockPos)
    • getClosestPlaceSide

      public static net.minecraft.core.Direction getClosestPlaceSide(net.minecraft.core.BlockPos blockPos)
    • getClosestPlaceSide

      public static net.minecraft.core.Direction getClosestPlaceSide(net.minecraft.core.BlockPos blockPos, net.minecraft.world.phys.Vec3 pos)
    • breakBlock

      public static boolean breakBlock(net.minecraft.core.BlockPos blockPos, boolean swing)
      Needs to be used in TickEvent.Pre
    • canBreak

      public static boolean canBreak(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state)
    • canBreak

      public static boolean canBreak(net.minecraft.core.BlockPos blockPos)
    • canInstaBreak

      public static boolean canInstaBreak(net.minecraft.core.BlockPos blockPos, float breakSpeed)
    • canInstaBreak

      public static boolean canInstaBreak(net.minecraft.core.BlockPos blockPos)
    • calcBlockBreakingDelta2

      public static float calcBlockBreakingDelta2(net.minecraft.core.BlockPos blockPos, float breakSpeed)
    • isClickable

      public static boolean isClickable(net.minecraft.world.level.block.Block block)
    • isValidMobSpawn

      public static BlockUtils.MobSpawn isValidMobSpawn(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState, int spawnLightLimit)
    • isValidSpawnBlock

      public static boolean isValidSpawnBlock(net.minecraft.world.level.block.state.BlockState blockState)
    • getDirection

      public static net.minecraft.core.Direction getDirection(net.minecraft.core.BlockPos pos)
    • isExposed

      public static boolean isExposed(net.minecraft.core.BlockPos blockPos)
    • getBreakDelta

      public static double getBreakDelta(int slot, net.minecraft.world.level.block.state.BlockState state)
    • mutateAround

      public static net.minecraft.core.BlockPos.MutableBlockPos mutateAround(net.minecraft.core.BlockPos.MutableBlockPos mutable, net.minecraft.core.BlockPos origin, int xOffset, int yOffset, int zOffset)
      Mutates a BlockPos.MutableBlockPos around an origin