Table of Contents
-
ABSORPTION
= self::MC_PREFIX . "absorption"
-
ATTACK_DAMAGE
= self::MC_PREFIX . "attack_damage"
-
EXHAUSTION
= self::MC_PREFIX . "player.exhaustion"
-
EXPERIENCE
= self::MC_PREFIX . "player.experience"
-
EXPERIENCE_LEVEL
= self::MC_PREFIX . "player.level"
-
FALL_DAMAGE
= self::MC_PREFIX . "fall_damage"
-
FOLLOW_RANGE
= self::MC_PREFIX . "follow_range"
-
FOOD
= self::HUNGER
-
HEALTH
= self::MC_PREFIX . "health"
-
HORSE_JUMP_STRENGTH
= self::MC_PREFIX . "horse.jump_strength"
-
HUNGER
= self::MC_PREFIX . "player.hunger"
-
KNOCKBACK_RESISTANCE
= self::MC_PREFIX . "knockback_resistance"
-
LAVA_MOVEMENT
= self::MC_PREFIX . "lava_movement"
-
LUCK
= self::MC_PREFIX . "luck"
-
MC_PREFIX
= "minecraft:"
-
MOVEMENT_SPEED
= self::MC_PREFIX . "movement"
-
SATURATION
= self::MC_PREFIX . "player.saturation"
-
UNDERWATER_MOVEMENT
= self::MC_PREFIX . "underwater_movement"
-
ZOMBIE_SPAWN_REINFORCEMENTS
= self::MC_PREFIX . "zombie.spawn_reinforcements"
-
$currentValue
: float
-
$defaultValue
: float
-
$desynchronized
: bool
-
$id
: string
-
$maxValue
: float
-
$minValue
: float
-
$shouldSend
: bool
-
__construct()
: mixed
-
getDefaultValue()
: float
-
getId()
: string
-
getMaxValue()
: float
-
getMinValue()
: float
-
getValue()
: float
-
isDesynchronized()
: bool
-
isSyncable()
: bool
-
markSynchronized()
: void
-
resetToDefault()
: void
-
setDefaultValue()
: $this
-
setMaxValue()
: $this
-
setMinValue()
: $this
-
setValue()
: $this
ABSORPTION
public
mixed
ABSORPTION
= self::MC_PREFIX . "absorption"
ATTACK_DAMAGE
public
mixed
ATTACK_DAMAGE
= self::MC_PREFIX . "attack_damage"
EXHAUSTION
public
mixed
EXHAUSTION
= self::MC_PREFIX . "player.exhaustion"
EXPERIENCE
public
mixed
EXPERIENCE
= self::MC_PREFIX . "player.experience"
EXPERIENCE_LEVEL
public
mixed
EXPERIENCE_LEVEL
= self::MC_PREFIX . "player.level"
FALL_DAMAGE
public
mixed
FALL_DAMAGE
= self::MC_PREFIX . "fall_damage"
FOLLOW_RANGE
public
mixed
FOLLOW_RANGE
= self::MC_PREFIX . "follow_range"
FOOD
public
mixed
FOOD
= self::HUNGER
HEALTH
public
mixed
HEALTH
= self::MC_PREFIX . "health"
HORSE_JUMP_STRENGTH
public
mixed
HORSE_JUMP_STRENGTH
= self::MC_PREFIX . "horse.jump_strength"
HUNGER
public
mixed
HUNGER
= self::MC_PREFIX . "player.hunger"
KNOCKBACK_RESISTANCE
public
mixed
KNOCKBACK_RESISTANCE
= self::MC_PREFIX . "knockback_resistance"
LAVA_MOVEMENT
public
mixed
LAVA_MOVEMENT
= self::MC_PREFIX . "lava_movement"
LUCK
public
mixed
LUCK
= self::MC_PREFIX . "luck"
MC_PREFIX
public
mixed
MC_PREFIX
= "minecraft:"
MOVEMENT_SPEED
public
mixed
MOVEMENT_SPEED
= self::MC_PREFIX . "movement"
SATURATION
public
mixed
SATURATION
= self::MC_PREFIX . "player.saturation"
UNDERWATER_MOVEMENT
public
mixed
UNDERWATER_MOVEMENT
= self::MC_PREFIX . "underwater_movement"
ZOMBIE_SPAWN_REINFORCEMENTS
public
mixed
ZOMBIE_SPAWN_REINFORCEMENTS
= self::MC_PREFIX . "zombie.spawn_reinforcements"
$currentValue
protected
float
$currentValue
$defaultValue
protected
float
$defaultValue
$desynchronized
protected
bool
$desynchronized
= true
$id
protected
string
$id
$maxValue
protected
float
$maxValue
$minValue
protected
float
$minValue
$shouldSend
protected
bool
$shouldSend
__construct()
public
__construct(string $id, float $minValue, float $maxValue, float $defaultValue[, bool $shouldSend = true ]) : mixed
Parameters
-
$id
: string
-
-
$minValue
: float
-
-
$maxValue
: float
-
-
$defaultValue
: float
-
-
$shouldSend
: bool
= true
-
Return values
mixed
—
getDefaultValue()
public
getDefaultValue() : float
Return values
float
—
getId()
public
getId() : string
Return values
string
—
getMaxValue()
public
getMaxValue() : float
Return values
float
—
getMinValue()
public
getMinValue() : float
Return values
float
—
getValue()
public
getValue() : float
Return values
float
—
isDesynchronized()
public
isDesynchronized() : bool
Return values
bool
—
isSyncable()
public
isSyncable() : bool
Return values
bool
—
markSynchronized()
public
markSynchronized([bool $synced = true ]) : void
Parameters
-
$synced
: bool
= true
-
Return values
void
—
resetToDefault()
public
resetToDefault() : void
Return values
void
—
setDefaultValue()
public
setDefaultValue(float $defaultValue) : $this
Parameters
-
$defaultValue
: float
-
Return values
$this
—
setMaxValue()
public
setMaxValue(float $maxValue) : $this
Parameters
-
$maxValue
: float
-
Return values
$this
—
setMinValue()
public
setMinValue(float $minValue) : $this
Parameters
-
$minValue
: float
-
Return values
$this
—
setValue()
public
setValue(float $value[, bool $fit = false ][, bool $forceSend = false ]) : $this
Parameters
-
$value
: float
-
-
$fit
: bool
= false
-
-
$forceSend
: bool
= false
-
Return values
$this
—