Struct CauldronPlan
pub struct CauldronPlan {
pub block: Option<BlockState>,
pub exchange: Option<ItemStack>,
pub sound: Option<Identifier>,
pub fluid_event: Option<Identifier>,
pub statistics: Vec<Identifier>,
}Expand description
A bounded proposal, validated against the captured local resource snapshot.
Fields§
§block: Option<BlockState>Optional replacement of the target block.
exchange: Option<ItemStack>Exchange one held item for this stack using vanilla container semantics.
sound: Option<Identifier>Optional sound, played once on root commit.
fluid_event: Option<Identifier>Optional fluid game event, published on root commit.
statistics: Vec<Identifier>At most two distinct statistics: cauldron statistic and item-used statistic.
Trait Implementations§
§impl Clone for CauldronPlan
impl Clone for CauldronPlan
§fn clone(&self) -> CauldronPlan
fn clone(&self) -> CauldronPlan
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 Debug for CauldronPlan
impl Debug for CauldronPlan
§impl Default for CauldronPlan
impl Default for CauldronPlan
§fn default() -> CauldronPlan
fn default() -> CauldronPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CauldronPlan
impl RefUnwindSafe for CauldronPlan
impl Send for CauldronPlan
impl Sync for CauldronPlan
impl Unpin for CauldronPlan
impl UnsafeUnpin for CauldronPlan
impl UnwindSafe for CauldronPlan
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