Block: get rid of getNonPersistentStateBitmask(), add writeStateToItemMeta()

this is more flexible and less confusing.
This commit is contained in:
Dylan K. Taylor
2021-08-02 19:17:24 +01:00
parent 01b48a21d9
commit bdac98beaf
13 changed files with 50 additions and 53 deletions

View File

@ -54,8 +54,8 @@ class Anvil extends Transparent implements Fallable{
return 0b1111;
}
public function getNonPersistentStateBitmask() : int{
return 0b11;
protected function writeStateToItemMeta() : int{
return $this->damage << 2;
}
public function getDamage() : int{ return $this->damage; }