C# Class Substrate.Nbt.TagNodeShort

An NBT node representing a signed short tag type.
Inheritance: TagNode
Datei anzeigen Open project: minecraft-dotnet/Substrate Class Usage Examples

Public Methods

Method Description
Copy ( ) : TagNode

Makes a deep copy of the node.

GetTagType ( ) : TagType

Gets the tag type of the node.

IsCastableTo ( TagType type ) : bool

Checks if the node is castable to another node of a given tag type.

TagNodeShort ( ) : System

Constructs a new short node with a data value of 0.

TagNodeShort ( short d ) : System

Constructs a new short node.

ToString ( ) : string

Gets a string representation of the node's data.

ToTagDouble ( ) : Substrate.Nbt.TagNodeDouble

Converts the node to a new double node.

ToTagFloat ( ) : Substrate.Nbt.TagNodeFloat

Converts the node to a new float node.

ToTagInt ( ) : Substrate.Nbt.TagNodeInt

Converts the node to a new int node.

ToTagLong ( ) : Substrate.Nbt.TagNodeLong

Converts the node to a new long node.

ToTagShort ( ) : TagNodeShort

Converts the node to itself.

Method Details

Copy() public method

Makes a deep copy of the node.
public Copy ( ) : TagNode
return TagNode

GetTagType() public method

Gets the tag type of the node.
public GetTagType ( ) : TagType
return TagType

IsCastableTo() public method

Checks if the node is castable to another node of a given tag type.
public IsCastableTo ( TagType type ) : bool
type TagType An NBT tag type.
return bool

TagNodeShort() public method

Constructs a new short node with a data value of 0.
public TagNodeShort ( ) : System
return System

TagNodeShort() public method

Constructs a new short node.
public TagNodeShort ( short d ) : System
d short The value to set the node's tag data value.
return System

ToString() public method

Gets a string representation of the node's data.
public ToString ( ) : string
return string

ToTagDouble() public method

Converts the node to a new double node.
public ToTagDouble ( ) : Substrate.Nbt.TagNodeDouble
return Substrate.Nbt.TagNodeDouble

ToTagFloat() public method

Converts the node to a new float node.
public ToTagFloat ( ) : Substrate.Nbt.TagNodeFloat
return Substrate.Nbt.TagNodeFloat

ToTagInt() public method

Converts the node to a new int node.
public ToTagInt ( ) : Substrate.Nbt.TagNodeInt
return Substrate.Nbt.TagNodeInt

ToTagLong() public method

Converts the node to a new long node.
public ToTagLong ( ) : Substrate.Nbt.TagNodeLong
return Substrate.Nbt.TagNodeLong

ToTagShort() public method

Converts the node to itself.
public ToTagShort ( ) : TagNodeShort
return TagNodeShort