mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
NetherReactor: Remove dead code
the state is not exposed anywhere, and we already remap invalid states to default now anyway.
This commit is contained in:
parent
a91e7f7202
commit
25fdf7e442
@ -29,20 +29,6 @@ use pocketmine\item\VanillaItems;
|
|||||||
|
|
||||||
class NetherReactor extends Opaque{
|
class NetherReactor extends Opaque{
|
||||||
|
|
||||||
protected int $state = BlockLegacyMetadata::NETHER_REACTOR_INACTIVE;
|
|
||||||
|
|
||||||
protected function writeStateToMeta() : int{
|
|
||||||
return $this->state;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
|
||||||
$this->state = BlockDataSerializer::readBoundedInt("state", $stateMeta, 0, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getStateBitmask() : int{
|
|
||||||
return 0b11;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDropsForCompatibleTool(Item $item) : array{
|
public function getDropsForCompatibleTool(Item $item) : array{
|
||||||
return [
|
return [
|
||||||
VanillaItems::IRON_INGOT()->setCount(6),
|
VanillaItems::IRON_INGOT()->setCount(6),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user