Package | Description |
---|---|
net.minecraft.block | |
net.minecraft.world | |
net.minecraftforge.common | |
net.minecraftforge.fluids | |
net.minecraftforge.liquids |
Modifier and Type | Method and Description |
---|---|
ForgeDirection[] |
Block.getValidRotations(World worldObj,
int x,
int y,
int z)
Get the rotations that can apply to the block at the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BlockFire.canBlockCatchFire(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection face)
Side sensitive version that calls the block function.
|
boolean |
BlockPane.canPaneConnectTo(IBlockAccess access,
int x,
int y,
int z,
ForgeDirection dir) |
boolean |
Block.canSustainPlant(World world,
int x,
int y,
int z,
ForgeDirection direction,
IPlantable plant)
Determines if this block can support the passed in plant, allowing it to be planted and grow.
|
int |
BlockFire.getChanceToEncourageFire(World world,
int x,
int y,
int z,
int oldChance,
ForgeDirection face)
Side sensitive version that calls the block function.
|
int |
Block.getFireSpreadSpeed(World world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Called when fire is updating on a neighbor block.
|
int |
Block.getFlammability(IBlockAccess world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Chance that fire will spread and consume this block.
|
boolean |
Block.isBlockSolidOnSide(World world,
int x,
int y,
int z,
ForgeDirection side)
Checks if the block is a solid face on the given side, used by placement logic.
|
boolean |
Block.isFireSource(World world,
int x,
int y,
int z,
int metadata,
ForgeDirection side)
Currently only called by fire when it is on top of this block.
|
boolean |
Block.isFlammable(IBlockAccess world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Called when fire is updating, checks if a block face can catch fire.
|
boolean |
Block.recolourBlock(World world,
int x,
int y,
int z,
ForgeDirection side,
int colour)
Common way to recolour a block with an external tool
|
boolean |
Block.rotateBlock(World worldObj,
int x,
int y,
int z,
ForgeDirection axis)
Rotate the block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
World.isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side)
Determine if the given block is considered solid on the
specified side.
|
boolean |
World.isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
Determine if the given block is considered solid on the
specified side.
|
boolean |
IBlockAccess.isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
FORGE: isBlockSolidOnSide, pulled up from
World |
boolean |
ChunkCache.isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side,
boolean _default) |
Modifier and Type | Field and Description |
---|---|
static ForgeDirection[] |
ForgeDirection.VALID_DIRECTIONS |
Modifier and Type | Method and Description |
---|---|
ForgeDirection |
ForgeDirection.getOpposite() |
static ForgeDirection |
ForgeDirection.getOrientation(int id) |
ForgeDirection |
ForgeDirection.getRotation(ForgeDirection axis) |
static ForgeDirection[] |
RotationHelper.getValidVanillaBlockRotations(Block block) |
static ForgeDirection |
ForgeDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForgeDirection[] |
ForgeDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ForgeDirection |
ForgeDirection.getRotation(ForgeDirection axis) |
static boolean |
RotationHelper.rotateVanillaBlock(Block block,
World worldObj,
int x,
int y,
int z,
ForgeDirection axis) |
Modifier and Type | Method and Description |
---|---|
boolean |
IFluidHandler.canDrain(ForgeDirection from,
Fluid fluid)
Returns true if the given fluid can be extracted from the given direction.
|
boolean |
TileFluidHandler.canDrain(ForgeDirection from,
Fluid fluid) |
boolean |
IFluidHandler.canFill(ForgeDirection from,
Fluid fluid)
Returns true if the given fluid can be inserted into the given direction.
|
boolean |
TileFluidHandler.canFill(ForgeDirection from,
Fluid fluid) |
FluidStack |
IFluidHandler.drain(ForgeDirection from,
FluidStack resource,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
TileFluidHandler.drain(ForgeDirection from,
FluidStack resource,
boolean doDrain) |
FluidStack |
IFluidHandler.drain(ForgeDirection from,
int maxDrain,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
TileFluidHandler.drain(ForgeDirection from,
int maxDrain,
boolean doDrain) |
int |
IFluidHandler.fill(ForgeDirection from,
FluidStack resource,
boolean doFill)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
int |
TileFluidHandler.fill(ForgeDirection from,
FluidStack resource,
boolean doFill) |
FluidTankInfo[] |
IFluidHandler.getTankInfo(ForgeDirection from)
Returns an array of objects which represent the internal tanks.
|
FluidTankInfo[] |
TileFluidHandler.getTankInfo(ForgeDirection from) |
Modifier and Type | Method and Description |
---|---|
LiquidStack |
ITankContainer.drain(ForgeDirection from,
int maxDrain,
boolean doDrain)
Deprecated.
Drains liquid out of internal tanks, distribution is left to the ITankContainer.
|
int |
ITankContainer.fill(ForgeDirection from,
LiquidStack resource,
boolean doFill)
Deprecated.
Fills liquid into internal tanks, distribution is left to the ITankContainer.
|
ILiquidTank |
ITankContainer.getTank(ForgeDirection direction,
LiquidStack type)
Deprecated.
Return the tank that this tank container desired to be used for the specified liquid type from the specified direction
|
ILiquidTank[] |
ITankContainer.getTanks(ForgeDirection direction)
Deprecated.
|