pub struct LegacyRandomSplitter {
seed: i64,
}Expand description
A positional random number generator factory for the legacy Minecraft LCG algorithm. This can create random sources based on position, hash, or seed.
Fields§
§seed: i64Implementations§
Trait Implementations§
Source§impl Clone for LegacyRandomSplitter
impl Clone for LegacyRandomSplitter
Source§fn clone(&self) -> LegacyRandomSplitter
fn clone(&self) -> LegacyRandomSplitter
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 moreSource§impl From<LegacyRandomSplitter> for RandomSplitter
impl From<LegacyRandomSplitter> for RandomSplitter
Source§fn from(v: LegacyRandomSplitter) -> RandomSplitter
fn from(v: LegacyRandomSplitter) -> RandomSplitter
Converts to this type from the input type.
Source§impl PositionalRandom for LegacyRandomSplitter
impl PositionalRandom for LegacyRandomSplitter
fn at(&self, x: i32, y: i32, z: i32) -> RandomSource
fn with_hash_of(&self, hash: &NameHash) -> RandomSource
fn with_seed(&self, seed: u64) -> RandomSource
Source§impl TryInto<LegacyRandomSplitter> for RandomSplitter
impl TryInto<LegacyRandomSplitter> for RandomSplitter
Auto Trait Implementations§
impl Freeze for LegacyRandomSplitter
impl RefUnwindSafe for LegacyRandomSplitter
impl Send for LegacyRandomSplitter
impl Sync for LegacyRandomSplitter
impl Unpin for LegacyRandomSplitter
impl UnsafeUnpin for LegacyRandomSplitter
impl UnwindSafe for LegacyRandomSplitter
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