pub struct World {
pub dim: String,
}Expand description
A dimension (minecraft:overworld): every action whose first field is dim.
Fields§
§dim: StringImplementations§
Source§impl World
impl World
pub fn new(dim: impl Into<String>) -> World
pub fn overworld() -> World
Sourcepub fn property(&self, pos: BlockPos, name: &str) -> Option<String>
pub fn property(&self, pos: BlockPos, name: &str) -> Option<String>
Property name of the block at pos ("energized" → "true").
Sourcepub fn set_properties(&self, pos: BlockPos, properties: &str) -> bool
pub fn set_properties(&self, pos: BlockPos, properties: &str) -> bool
Sets some properties of the block at pos ("energized=true,powered=false"),
keeping the rest; false if there’s no block or the state doesn’t take.
Source§impl World
impl World
Sourcepub fn scan_region(
&self,
from: impl Arg<BlockPos>,
to: impl Arg<BlockPos>,
) -> Vec<PlacedBlock>
pub fn scan_region( &self, from: impl Arg<BlockPos>, to: impl Arg<BlockPos>, ) -> Vec<PlacedBlock>
The non-air blocks in a box.
Trait Implementations§
impl Eq for World
impl StructuralPartialEq for World
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnsafeUnpin for World
impl UnwindSafe for World
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