C# Class Substrate.Nbt.TagNodeShort

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

Méthodes publiques

Méthode 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 méthode

Makes a deep copy of the node.
public Copy ( ) : TagNode
Résultat TagNode

GetTagType() public méthode

Gets the tag type of the node.
public GetTagType ( ) : TagType
Résultat TagType

IsCastableTo() public méthode

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.
Résultat bool

TagNodeShort() public méthode

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

TagNodeShort() public méthode

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

ToString() public méthode

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

ToTagDouble() public méthode

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

ToTagFloat() public méthode

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

ToTagInt() public méthode

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

ToTagLong() public méthode

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

ToTagShort() public méthode

Converts the node to itself.
public ToTagShort ( ) : TagNodeShort
Résultat TagNodeShort