public final class BlockUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z) |
static boolean |
breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
int forcedLifespan) |
static boolean |
breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops) |
static boolean |
canChangeBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z) |
static boolean |
canChangeBlock(net.minecraft.world.World world,
int x,
int y,
int z) |
static int |
computeBlockBreakEnergy(net.minecraft.world.World world,
int x,
int y,
int z) |
static net.minecraftforge.fluids.FluidStack |
drainBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z,
boolean doDrain) |
static net.minecraftforge.fluids.FluidStack |
drainBlock(net.minecraft.world.World world,
int x,
int y,
int z,
boolean doDrain) |
static void |
dropItem(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
int forcedLifespan,
net.minecraft.item.ItemStack stack) |
static void |
explodeBlock(net.minecraft.world.World world,
int x,
int y,
int z)
Create an explosion which only affects a single block.
|
static net.minecraft.block.Block |
getBlock(net.minecraft.world.World world,
int x,
int y,
int z) |
static net.minecraft.block.Block |
getBlock(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force) |
static int |
getBlockMetadata(net.minecraft.world.World world,
int x,
int y,
int z) |
static int |
getBlockMetadata(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force) |
static net.minecraftforge.fluids.Fluid |
getFluid(net.minecraft.block.Block block) |
static java.util.List<net.minecraft.item.ItemStack> |
getItemStackFromBlock(net.minecraft.world.WorldServer world,
int i,
int j,
int k) |
static net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.world.World world,
int x,
int y,
int z) |
static net.minecraft.tileentity.TileEntity |
getTileEntity(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force) |
static boolean |
isAnObstructingBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z) |
static boolean |
isFullFluidBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z) |
static boolean |
isFullFluidBlock(net.minecraft.world.World world,
int x,
int y,
int z) |
static boolean |
isToughBlock(net.minecraft.world.World world,
int x,
int y,
int z)
Returns true if a block cannot be harvested without a tool.
|
static boolean |
isUnbreakableBlock(net.minecraft.world.World world,
int x,
int y,
int z) |
public static java.util.List<net.minecraft.item.ItemStack> getItemStackFromBlock(net.minecraft.world.WorldServer world,
int i,
int j,
int k)
public static boolean breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z)
public static boolean breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
int forcedLifespan)
public static boolean breakBlock(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops)
public static void dropItem(net.minecraft.world.WorldServer world,
int x,
int y,
int z,
int forcedLifespan,
net.minecraft.item.ItemStack stack)
public static boolean isAnObstructingBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean canChangeBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean canChangeBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean isUnbreakableBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean isToughBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean isFullFluidBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static boolean isFullFluidBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z)
public static net.minecraftforge.fluids.Fluid getFluid(net.minecraft.block.Block block)
public static net.minecraftforge.fluids.FluidStack drainBlock(net.minecraft.world.World world,
int x,
int y,
int z,
boolean doDrain)
public static net.minecraftforge.fluids.FluidStack drainBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
int x,
int y,
int z,
boolean doDrain)
public static void explodeBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static int computeBlockBreakEnergy(net.minecraft.world.World world,
int x,
int y,
int z)
public static net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.world.World world,
int x,
int y,
int z)
public static net.minecraft.tileentity.TileEntity getTileEntity(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force)
public static net.minecraft.block.Block getBlock(net.minecraft.world.World world,
int x,
int y,
int z)
public static net.minecraft.block.Block getBlock(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force)
public static int getBlockMetadata(net.minecraft.world.World world,
int x,
int y,
int z)
public static int getBlockMetadata(net.minecraft.world.World world,
int x,
int y,
int z,
boolean force)