pub trait NbtExt {
Show 16 methods
// Required methods
fn get_i8_or<'a>(&'a self, name: &'a str, default: i8) -> i8;
fn get_i16_or<'a>(&'a self, name: &'a str, default: i16) -> i16;
fn get_i32_or<'a>(&'a self, name: &'a str, default: i32) -> i32;
fn get_i64_or<'a>(&'a self, name: &'a str, default: i64) -> i64;
fn get_f32_or<'a>(&'a self, name: &'a str, default: f32) -> f32;
fn get_f64_or<'a>(&'a self, name: &'a str, default: f64) -> f64;
fn get_bool_or<'a>(&'a self, name: &'a str, default: bool) -> bool;
fn insert_uuid(&mut self, name: impl ToString, value: &Uuid);
fn get_uuid<'a>(
&'a self,
name: &'a str,
) -> Result<Uuid, CompoundTagError<'a>>;
fn insert_entity_pos(&mut self, name: impl ToString, value: &EntityPos);
fn get_entity_pos<'a>(
&'a self,
name: &'a str,
) -> Result<EntityPos, CompoundTagError<'a>>;
fn insert_block_pos(&mut self, name: impl ToString, value: &BlockPos);
fn get_block_pos<'a>(
&'a self,
name: &'a str,
) -> Result<BlockPos, CompoundTagError<'a>>;
fn insert_split_block_pos(
&mut self,
x_name: impl ToString,
y_name: impl ToString,
z_name: impl ToString,
value: &BlockPos,
);
fn get_split_block_pos<'a>(
&'a self,
x_name: &'a str,
y_name: &'a str,
z_name: &'a str,
) -> Result<BlockPos, CompoundTagError<'a>>;
fn get_string_vec<'a>(
&'a self,
name: &'a str,
) -> Result<Vec<String>, CompoundTagError<'a>>;
}
Required Methods§
fn get_i8_or<'a>(&'a self, name: &'a str, default: i8) -> i8
fn get_i16_or<'a>(&'a self, name: &'a str, default: i16) -> i16
fn get_i32_or<'a>(&'a self, name: &'a str, default: i32) -> i32
fn get_i64_or<'a>(&'a self, name: &'a str, default: i64) -> i64
fn get_f32_or<'a>(&'a self, name: &'a str, default: f32) -> f32
fn get_f64_or<'a>(&'a self, name: &'a str, default: f64) -> f64
fn get_bool_or<'a>(&'a self, name: &'a str, default: bool) -> bool
fn insert_uuid(&mut self, name: impl ToString, value: &Uuid)
fn get_uuid<'a>(&'a self, name: &'a str) -> Result<Uuid, CompoundTagError<'a>>
fn insert_entity_pos(&mut self, name: impl ToString, value: &EntityPos)
fn get_entity_pos<'a>( &'a self, name: &'a str, ) -> Result<EntityPos, CompoundTagError<'a>>
fn insert_block_pos(&mut self, name: impl ToString, value: &BlockPos)
fn get_block_pos<'a>( &'a self, name: &'a str, ) -> Result<BlockPos, CompoundTagError<'a>>
fn insert_split_block_pos( &mut self, x_name: impl ToString, y_name: impl ToString, z_name: impl ToString, value: &BlockPos, )
fn get_split_block_pos<'a>( &'a self, x_name: &'a str, y_name: &'a str, z_name: &'a str, ) -> Result<BlockPos, CompoundTagError<'a>>
fn get_string_vec<'a>( &'a self, name: &'a str, ) -> Result<Vec<String>, CompoundTagError<'a>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.