◆ addAttribute()
- Parameters
-
32 $this->attributes[$attribute->getId()] = $attribute;
◆ getAll()
- Returns
- array
48 return $this->attributes;
◆ getAttribute()
- Parameters
-
- Returns
- Attribute|null
41 return $this->attributes[$id] ?? null;
◆ needSend()
- Returns
- Attribute[]
55 return array_filter($this->attributes,
function(Attribute $attribute){
56 return $attribute->isSyncable() and $attribute->isDesynchronized();
◆ offsetExists()
- Parameters
-
- Returns
- bool
66 return isset($this->attributes[$offset]);
◆ offsetGet()
- Parameters
-
- Returns
- float
75 return $this->attributes[$offset]->getValue();
◆ offsetSet()
offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
- Parameters
-
83 $this->attributes[$offset]->setValue($value);
◆ offsetUnset()
- Parameters
-
90 throw new \RuntimeException(
"Could not unset an attribute from an attribute map");
The documentation for this class was generated from the following file:
- src/pocketmine/entity/AttributeMap.php