pub struct PlaySetCooldownSpec {
pub item_id: VarInt,
pub cooldown_ticks: VarInt,
}
Fields§
§item_id: VarInt
§cooldown_ticks: VarInt
Trait Implementations§
Source§impl Clone for PlaySetCooldownSpec
impl Clone for PlaySetCooldownSpec
Source§fn clone(&self) -> PlaySetCooldownSpec
fn clone(&self) -> PlaySetCooldownSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlaySetCooldownSpec
impl Debug for PlaySetCooldownSpec
Source§impl Deserialize for PlaySetCooldownSpec
impl Deserialize for PlaySetCooldownSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlaySetCooldownSpec> for (VarInt, VarInt)
impl From<PlaySetCooldownSpec> for (VarInt, VarInt)
Source§fn from(other: PlaySetCooldownSpec) -> Self
fn from(other: PlaySetCooldownSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlaySetCooldownSpec
impl PartialEq for PlaySetCooldownSpec
Source§impl Serialize for PlaySetCooldownSpec
impl Serialize for PlaySetCooldownSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlaySetCooldownSpec
Auto Trait Implementations§
impl Freeze for PlaySetCooldownSpec
impl RefUnwindSafe for PlaySetCooldownSpec
impl Send for PlaySetCooldownSpec
impl Sync for PlaySetCooldownSpec
impl Unpin for PlaySetCooldownSpec
impl UnwindSafe for PlaySetCooldownSpec
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