Enum nbt_lib::version::JavaNetty

source ·
pub enum JavaNetty {}
Expand description

Network data version 1.20.2+

Trait Implementations§

source§

impl NbtRead for JavaNetty

source§

fn read_i8_array(reader: &mut NbtReader) -> NbtResult<Vec<i8>>

function to read a signed 8-bit integer array Read more
source§

fn read_i32_array(reader: &mut NbtReader) -> NbtResult<Vec<i32>>

function to read a signed 32-bit integer array Read more
source§

fn read_i64_array(reader: &mut NbtReader) -> NbtResult<Vec<i64>>

function to read a signed 64-bit integer array Read more
source§

fn read_nbt_string(reader: &mut NbtReader) -> NbtResult<String>

function to read a string Read more
source§

fn read_list(reader: &mut NbtReader) -> NbtResult<Vec<NbtValue>>

function to read a list of nbt values Read more
source§

fn read_compound(reader: &mut NbtReader) -> NbtResult<HashMap<String, NbtValue>>

function to read a list of named nbt values Read more
source§

fn from_reader(reader: NbtReader) -> NbtResult<NbtValue>

function to read nbt data from a NbtReader Read more
source§

fn from_reader_text_component(reader: NbtReader) -> NbtResult<NbtValue>

function to read a text component from a NbtReader Read more
source§

impl NbtWrite for JavaNetty

source§

fn write_i8_array(writer: &mut Vec<u8>, data: &[i8])

function to write a signed 8-bit integer array
source§

fn write_i32_array(writer: &mut Vec<u8>, data: &[i32])

function to write a signed 32-bit integer array
source§

fn write_i64_array(writer: &mut Vec<u8>, data: &[i64])

function to write a signed 64-bit integer array
source§

fn write_nbt_string(writer: &mut Vec<u8>, data: &str)

function to write a string
source§

fn write_list(writer: &mut Vec<u8>, data: &[NbtValue]) -> NbtResult<()>

function to write a list of nbt values
source§

fn write_compound( writer: &mut Vec<u8>, name: Option<&String>, data: Vec<(&String, &NbtValue)> ) -> NbtResult<()>

function to write a list of named nbt values
source§

fn write_to(value: &NbtValue, buff: &mut Vec<u8>) -> NbtResult<()>

function to write nbt data to an vector
source§

fn write_to_with_name( _name: &str, value: &NbtValue, buff: &mut Vec<u8> ) -> NbtResult<()>

function to write nbt data to an vector with an name
source§

fn to_bytes(value: &NbtValue) -> NbtResult<Vec<u8>>

function to convert nbt data into bytes
source§

fn write_text_component(writer: &mut Vec<u8>, value: &NbtValue) -> NbtResult<()>

function to write a text component to an vector

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.