public interface ICharcoalManager
| 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. |
void registerWall(net.minecraft.block.Block block,
int amount)
This method unlike registerWall(IBlockState, int) ignores the metadata of the actual block and
only compares the world block with the given block.
void registerWall(net.minecraft.block.state.IBlockState blockState,
int amount)
This method unlike registerWall(Block, int) compares the world state with the given state and not
only the block.
void registerWall(ICharcoalPileWall wall)
ICharcoalPileWall interface.boolean removeWall(net.minecraft.block.Block block)
ICharcoalPileWall is implemented.
removeWall(IBlockState) is preferred.boolean removeWall(net.minecraft.block.state.IBlockState state)
ICharcoalPileWall.matches(IBlockState) the given blockstate.state - the blockstate to remove.java.util.Collection<ICharcoalPileWall> getWalls()