Package | Description |
---|---|
net.minecraft.block | |
net.minecraft.tileentity | |
net.minecraft.world | |
net.minecraftforge.common | |
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 |
---|---|
int |
TileEntityFurnace.getSizeInventorySide(ForgeDirection side) |
int |
TileEntityFurnace.getStartInventorySide(ForgeDirection side)
This function is here for compatibilities sake, Modders should Check for
Sided before ContainerWorldly, Vanilla Minecraft does not follow the sided standard
that Modding has for a while.
|
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 |
IBlockAccess.isBlockSolidOnSide(int x,
int y,
int z,
ForgeDirection side,
boolean _default)
FORGE: isBlockSolidOnSide, pulled up from
World |
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 |
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) |
int |
ISidedInventory.getSizeInventorySide(ForgeDirection side)
Deprecated.
|
int |
ISidedInventory.getStartInventorySide(ForgeDirection side)
Deprecated.
|
static boolean |
RotationHelper.rotateVanillaBlock(Block block,
World worldObj,
int x,
int y,
int z,
ForgeDirection axis) |
Modifier and Type | Method and Description |
---|---|
LiquidStack |
ITankContainer.drain(ForgeDirection from,
int maxDrain,
boolean doDrain)
Drains liquid out of internal tanks, distribution is left to the ITankContainer.
|
int |
ITankContainer.fill(ForgeDirection from,
LiquidStack resource,
boolean doFill)
Fills liquid into internal tanks, distribution is left to the ITankContainer.
|
ILiquidTank |
ITankContainer.getTank(ForgeDirection direction,
LiquidStack type)
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) |