Enum GroundProvider
pub enum GroundProvider {
Decorator,
Mod(Arc<dyn GroundStateProvider>),
}Expand description
The provider a tree decorator places its ground with:
AlterGroundEvent.getStateProvider.
Variants§
Decorator
The decorator’s own (AlterGroundDecorator.provider).
Mod(Arc<dyn GroundStateProvider>)
A mod’s, in place of the one before. To change the ground only where it likes, a mod wraps the provider it found and asks it for the rest.
Implementations§
§impl GroundProvider
impl GroundProvider
pub fn state_at(
&self,
level: &mut dyn GroundLevel,
pos: [i32; 3],
) -> Option<BlockStateId>
pub fn state_at( &self, level: &mut dyn GroundLevel, pos: [i32; 3], ) -> Option<BlockStateId>
This provider’s state at pos, or None to try the next position down.
Trait Implementations§
§impl Clone for GroundProvider
impl Clone for GroundProvider
§fn clone(&self) -> GroundProvider
fn clone(&self) -> GroundProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl PartialEq for GroundProvider
The same provider: both the decorator’s own, or the same mod provider object.
impl PartialEq for GroundProvider
The same provider: both the decorator’s own, or the same mod provider object.
Auto Trait Implementations§
impl !RefUnwindSafe for GroundProvider
impl !UnwindSafe for GroundProvider
impl Freeze for GroundProvider
impl Send for GroundProvider
impl Sync for GroundProvider
impl Unpin for GroundProvider
impl UnsafeUnpin for GroundProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more