public class CharcoalManager extends java.lang.Object implements ICharcoalManager
| Constructor and Description |
|---|
CharcoalManager() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ICharcoalPileWall> |
getWalls() |
void |
registerWall(net.minecraft.block.Block block,
int amount)
Registers the given block as a valid block for the charcoal pile wall and adds the given charcoal amount to it.
|
void |
registerWall(net.minecraft.block.state.IBlockState blockState,
int amount)
Registers the given block as a valid block for the charcoal pile wall and adds the given charcoal amount to it.
|
void |
registerWall(ICharcoalPileWall wall)
Registers your implementation of the
ICharcoalPileWall interface. |
boolean |
removeWall(net.minecraft.block.Block block)
Remove a wall associated with the given block.
|
boolean |
removeWall(net.minecraft.block.state.IBlockState state)
Remove a wall that
ICharcoalPileWall.matches(IBlockState) the given blockstate. |
public void registerWall(net.minecraft.block.Block block,
int amount)
ICharcoalManager
This method unlike ICharcoalManager.registerWall(IBlockState, int) ignores the metadata of the actual block and
only compares the world block with the given block.
registerWall in interface ICharcoalManagerpublic void registerWall(net.minecraft.block.state.IBlockState blockState,
int amount)
ICharcoalManager
This method unlike ICharcoalManager.registerWall(Block, int) compares the world state with the given state and not
only the block.
registerWall in interface ICharcoalManagerpublic void registerWall(ICharcoalPileWall wall)
ICharcoalManagerICharcoalPileWall interface.registerWall in interface ICharcoalManagerpublic boolean removeWall(net.minecraft.block.Block block)
ICharcoalManagerICharcoalPileWall is implemented.
ICharcoalManager.removeWall(IBlockState) is preferred.removeWall in interface ICharcoalManagerpublic boolean removeWall(net.minecraft.block.state.IBlockState state)
ICharcoalManagerICharcoalPileWall.matches(IBlockState) the given blockstate.removeWall in interface ICharcoalManagerstate - the blockstate to remove.public java.util.Collection<ICharcoalPileWall> getWalls()
getWalls in interface ICharcoalManager