pub trait GrowingPlantHeadBehavior: Send + Sync {
// Required methods
fn is_max_age(&self, state: BlockStateId) -> bool;
fn get_max_age_state(&self, state: BlockStateId) -> BlockStateId;
}Expand description
Shared behavior exposed by blocks in vanilla’s GrowingPlantHeadBlock hierarchy.
Required Methods§
Sourcefn is_max_age(&self, state: BlockStateId) -> bool
fn is_max_age(&self, state: BlockStateId) -> bool
Vanilla GrowingPlantHeadBlock.isMaxAge.
Sourcefn get_max_age_state(&self, state: BlockStateId) -> BlockStateId
fn get_max_age_state(&self, state: BlockStateId) -> BlockStateId
Vanilla GrowingPlantHeadBlock.getMaxAgeState.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".