LeviLamina
Loading...
Searching...
No Matches
IntTag Class Reference
+ Inheritance diagram for IntTag:

Public Types

enum class  Type : uchar {
  End = 0x0 , Byte = 0x1 , Short = 0x2 , Int = 0x3 ,
  Int64 = 0x4 , Float = 0x5 , Double = 0x6 , ByteArray = 0x7 ,
  String = 0x8 , List = 0x9 , Compound = 0xA , IntArray = 0xB
}
 

Public Member Functions

template<std::integral T>
constexpr IntTagoperator= (int value) noexcept
 
template<std::integral T>
constexpr operator T () const noexcept
 
template<std::integral T>
constexpr IntTag (T value=0) noexcept
 
IntTag operator- () const noexcept
 
virtual void write (::IDataOutput &dos) const
 
virtual ::Bedrock::Result< void > load (::IDataInput &dis)
 
virtual::Tag::Type getId () const
 
virtual::std::string toString () const
 
virtual ::std::unique_ptr<::Tagcopy () const
 
virtual bool equals (::Tag const &rhs) const
 
virtual uint64 hash () const
 
MCFOLD void $dtor ()
 
MCAPI void $write (::IDataOutput &dos) const
 
MCAPI ::Bedrock::Result< void > $load (::IDataInput &dis)
 
MCFOLD::Tag::Type $getId () const
 
MCAPI::std::string $toString () const
 
MCAPI ::std::unique_ptr<::Tag$copy () const
 
MCAPI bool $equals (::Tag const &rhs) const
 
MCAPI uint64 $hash () const
 
template<std::derived_from< Tag > T>
T const * as_ptr () const
 
template<std::derived_from< Tag > T>
T * as_ptr ()
 
template<std::derived_from< Tag > T>
T const & as () const
 
template<std::derived_from< Tag > T>
T & as ()
 
bool operator== (Tag const &other) const
 
LLNDAPI std::string toSnbt (SnbtFormat snbtFormat=SnbtFormat::PrettyFilePrint, uchar indent=4) const noexcept
 
virtual void deleteChildren ()
 
virtual void print (::PrintStream &out) const
 
virtual void print (::std::string const &prefix, ::PrintStream &out) const
 
MCFOLD void $deleteChildren ()
 
MCAPI void $print (::PrintStream &out) const
 
MCAPI void $print (::std::string const &prefix, ::PrintStream &out) const
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 
static MCAPI ::std::string getTagName (::Tag::Type type)
 
static MCAPI ::Bedrock::Result<::std::unique_ptr<::Tag > > newTag (::Tag::Type type)
 
static MCAPI ::std::string const & NullString ()
 

Public Attributes

int data
 

Member Function Documentation

◆ write()

virtual void IntTag::write ( ::IDataOutput & dos) const
virtual

Implements Tag.

◆ load()

virtual ::Bedrock::Result< void > IntTag::load ( ::IDataInput & dis)
virtual

Implements Tag.

◆ getId()

virtual::Tag::Type IntTag::getId ( ) const
virtual

Implements Tag.

◆ toString()

virtual::std::string IntTag::toString ( ) const
virtual

Implements Tag.

◆ copy()

virtual ::std::unique_ptr<::Tag > IntTag::copy ( ) const
virtual

Implements Tag.

◆ equals()

virtual bool IntTag::equals ( ::Tag const & rhs) const
virtual

Reimplemented from Tag.

◆ hash()

virtual uint64 IntTag::hash ( ) const
virtual

Implements Tag.


The documentation for this class was generated from the following file: