pub struct UpdateCommandBlock {
pub location: BlockPos,
pub command: ByteString,
pub mode: i32,
pub flags: u8,
}Expand description
update_command_block (serverbound play, id 0x26).
Fields§
§location: BlockPoslocation
command: ByteStringcommand
mode: i32mode
flags: u8flags
Trait Implementations§
Source§impl Clone for UpdateCommandBlock
impl Clone for UpdateCommandBlock
Source§impl Debug for UpdateCommandBlock
impl Debug for UpdateCommandBlock
Source§impl Decode for UpdateCommandBlock
impl Decode for UpdateCommandBlock
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for UpdateCommandBlock
impl Encode for UpdateCommandBlock
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<UpdateCommandBlock> for ServerboundPlayPacket
impl From<UpdateCommandBlock> for ServerboundPlayPacket
Source§fn from(p: UpdateCommandBlock) -> Self
fn from(p: UpdateCommandBlock) -> Self
Converts to this type from the input type.
Source§impl Generate for UpdateCommandBlock
Available on crate feature testgen only.
impl Generate for UpdateCommandBlock
Available on crate feature
testgen only.Source§impl Packet for UpdateCommandBlock
impl Packet for UpdateCommandBlock
Source§impl PartialEq for UpdateCommandBlock
impl PartialEq for UpdateCommandBlock
impl StructuralPartialEq for UpdateCommandBlock
Auto Trait Implementations§
impl !Freeze for UpdateCommandBlock
impl RefUnwindSafe for UpdateCommandBlock
impl Send for UpdateCommandBlock
impl Sync for UpdateCommandBlock
impl Unpin for UpdateCommandBlock
impl UnsafeUnpin for UpdateCommandBlock
impl UnwindSafe for UpdateCommandBlock
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