pub struct LampBlock { /* private fields */ }Implementations§
Trait Implementations§
source§impl BlockLogic for LampBlock
impl BlockLogic for LampBlock
fn is_symmetric(&self) -> bool
fn create_build_cost(&self) -> Option<ItemStorage>
fn data_from_i32( &self, config: i32, _: GridPos ) -> Result<DynData, DataConvertError>
fn deserialize_state( &self, data: DynData ) -> Result<Option<State>, DeserializeError>
fn clone_state(&self, state: &State) -> State
fn serialize_state(&self, state: &State) -> Result<DynData, SerializeError>
fn mirror_state(&self, state: &mut State, horizontally: bool, vertically: bool)
fn rotate_state(&self, state: &mut State, clockwise: bool)
fn draw( &self, name: &str, state: Option<&State>, context: Option<&RenderingContext<'_>>, rot: Rotation, scale: Scale ) -> ImageHolder
fn want_context(&self) -> bool
fn read( &self, build: &mut Build<'_>, reg: &BlockRegistry<'_>, mapping: &EntityMapping, buff: &mut DataRead<'_> ) -> Result<(), DataReadError>
Auto Trait Implementations§
impl RefUnwindSafe for LampBlock
impl Send for LampBlock
impl Sync for LampBlock
impl Unpin for LampBlock
impl UnwindSafe for LampBlock
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