Package forestry.api.arboriculture
Interface ICharcoalManager
Deprecated.
Provides functions that are related to the forestry charcoal pile.
-
Method Summary
Modifier and TypeMethodDescriptiongetWall(net.minecraft.world.level.block.state.BlockState state) Deprecated.getWalls()Deprecated.voidDeprecated, for removal: This API element is subject to removal in a future version.voidregisterWall(net.minecraft.world.level.block.Block block, int amount) Deprecated, for removal: This API element is subject to removal in a future version.voidregisterWall(net.minecraft.world.level.block.state.BlockState blockState, int amount) Deprecated, for removal: This API element is subject to removal in a future version.booleanremoveWall(net.minecraft.world.level.block.Block block) Deprecated, for removal: This API element is subject to removal in a future version.booleanremoveWall(net.minecraft.world.level.block.state.BlockState state) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
registerWall
@Deprecated(forRemoval=true) void registerWall(net.minecraft.world.level.block.Block block, int amount) Deprecated, for removal: This API element is subject to removal in a future version.Registers the given block as a valid block for the charcoal pile wall and adds the given charcoal amount to it.This method unlike
registerWall(BlockState, int)ignores the metadata of the actual block and only compares the world block with the given block. -
registerWall
@Deprecated(forRemoval=true) void registerWall(net.minecraft.world.level.block.state.BlockState blockState, int amount) Deprecated, for removal: This API element is subject to removal in a future version.Registers the given block as a valid block for the charcoal pile wall and adds the given charcoal amount to it.This method unlike
registerWall(Block, int)compares the world state with the given state and not only the block. -
registerWall
Deprecated, for removal: This API element is subject to removal in a future version.Registers your implementation of theICharcoalPileWallinterface. -
getWall
Deprecated. -
removeWall
Deprecated, for removal: This API element is subject to removal in a future version.Remove a wall associated with the given block. Not guaranteed to work depending on howICharcoalPileWallis implemented.removeWall(BlockState)is preferred.- Returns:
- true if the wall was removed.
-
removeWall
@Deprecated(forRemoval=true) boolean removeWall(net.minecraft.world.level.block.state.BlockState state) Deprecated, for removal: This API element is subject to removal in a future version.Remove a wall thatICharcoalPileWall.matches(BlockState)the given blockstate.- Parameters:
state- the blockstate to remove.- Returns:
- true if the wall was removed.
-
getWalls
List<ICharcoalPileWall> getWalls()Deprecated.- Returns:
- A collection with all registered charcoal pile walls.
-
IArboricultureRegistration.registerCharcoalPitWall(net.minecraft.world.level.block.state.BlockState, int)