"Sputnik" help  
Sputnik Help
NbtIsTypeValid(<type>)

Description

Checks if the provided value is a valid NBT (Named Binary Tag) type.

Parameters

<type> The NBT type value to check.

Return Value

Success: Returns true if the provided NBT type value is valid.
Failure: Returns false if the provided NBT type value is invalid.

Remarks

The NbtIsTypeValid function validates whether the given NBT type value is a valid NBT type in Sputnik. NBT types are represented by specific integer values defined in the NBT specification.

Related

Example

Example of usage:

my $nbtType = @NbtDouble;
say NbtIsTypeValid($nbtType);

my $invalidType = -99;
say NbtIsTypeValid($invalidType);

// PRINTS
// true
// false

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org