PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
pocketmine\nbt\tag\FloatTag Class Reference
+ Inheritance diagram for pocketmine\nbt\tag\FloatTag:
+ Collaboration diagram for pocketmine\nbt\tag\FloatTag:

Public Member Functions

 __construct (float $value)
 
 __toString ()
 
 equals (Tag $that)
 
 getType ()
 
 getValue ()
 
 safeClone ()
 
 toString (int $indentation=0)
 
 write (NbtStreamWriter $writer)
 

Static Public Member Functions

static read (NbtStreamReader $reader)
 

Protected Member Functions

 getTypeName ()
 
 makeCopy ()
 
 stringifyValue (int $indentation)
 

Static Protected Member Functions

static restrictArgCount (string $func, int $haveArgs, int $wantMaxArgs)
 

Protected Attributes

 $cloning = false
 

Detailed Description

Definition at line 32 of file FloatTag.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\nbt\tag\FloatTag::__construct ( float  $value)

Definition at line 36 of file FloatTag.php.

Member Function Documentation

◆ __toString()

pocketmine\nbt\tag\Tag::__toString ( )
inherited

Definition at line 43 of file Tag.php.

◆ equals()

pocketmine\nbt\tag\FloatTag::equals ( Tag  $that)

Compares this Tag to the given Tag and determines whether or not they are equal, based on type and value. Complex tag types should override this to provide proper value comparison.

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 65 of file FloatTag.php.

◆ getType()

pocketmine\nbt\tag\FloatTag::getType ( )

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 45 of file FloatTag.php.

◆ getTypeName()

pocketmine\nbt\tag\FloatTag::getTypeName ( )
protected

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 41 of file FloatTag.php.

◆ getValue()

pocketmine\nbt\tag\FloatTag::getValue ( )
Returns
mixed

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 57 of file FloatTag.php.

◆ makeCopy()

pocketmine\nbt\tag\ImmutableTag::makeCopy ( )
protectedinherited
Returns
static

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 28 of file ImmutableTag.php.

◆ read()

static pocketmine\nbt\tag\FloatTag::read ( NbtStreamReader  $reader)
static

Definition at line 49 of file FloatTag.php.

◆ restrictArgCount()

static pocketmine\nbt\tag\Tag::restrictArgCount ( string  $func,
int  $haveArgs,
int  $wantMaxArgs 
)
staticprotectedinherited

Definition at line 88 of file Tag.php.

◆ safeClone()

pocketmine\nbt\tag\Tag::safeClone ( )
inherited

Clones this tag safely, detecting recursive dependencies which would otherwise cause an infinite cloning loop. Used for cloning tags in tags that have children.

Exceptions

RuntimeException if a recursive dependency was detected

Definition at line 61 of file Tag.php.

◆ stringifyValue()

pocketmine\nbt\tag\FloatTag::stringifyValue ( int  $indentation)
protected

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 61 of file FloatTag.php.

◆ toString()

pocketmine\nbt\tag\Tag::toString ( int  $indentation = 0)
finalinherited

Definition at line 47 of file Tag.php.

◆ write()

pocketmine\nbt\tag\FloatTag::write ( NbtStreamWriter  $writer)

Reimplemented from pocketmine\nbt\tag\Tag.

Definition at line 53 of file FloatTag.php.

Member Data Documentation

◆ $cloning

pocketmine\nbt\tag\Tag::$cloning = false
protectedinherited

Definition at line 34 of file Tag.php.


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