public function __construct($meta = 0) { Solid::__construct(self::WOOD2, $meta, "Wood"); $names = [0 => "Acacia Wood", 1 => "Dark Oak Wood"]; $this->name = $names[$this->meta & 0x3]; $this->hardness = 10; }
public function __construct($meta = 0) { parent::__construct(self::WOOL, $meta, "Wool"); $names = [0 => "White Wool", 1 => "Orange Wool", 2 => "Magenta Wool", 3 => "Light Blue Wool", 4 => "Yellow Wool", 5 => "Lime Wool", 6 => "Pink Wool", 7 => "Gray Wool", 8 => "Light Gray Wool", 9 => "Cyan Wool", 10 => "Purple Wool", 11 => "Blue Wool", 12 => "Brown Wool", 13 => "Green Wool", 14 => "Red Wool", 15 => "Black Wool"]; $this->name = $names[$this->meta]; $this->hardness = 4; }
public function __construct($meta = 0) { parent::__construct(self::PLANKS, $meta, "Wood Planks"); $names = [self::OAK => "Oak Wood Planks", self::SPRUCE => "Spruce Wood Planks", self::BIRCH => "Birch Wood Planks", self::JUNGLE => "Jungle Wood Planks", self::ACACIA => "Acacia Wood Planks", self::DARK_OAK => "Jungle Wood Planks"]; $this->name = $names[$this->meta & 0x7]; $this->hardness = 15; }
public function __construct($meta = 0) { parent::__construct(self::GLOWING_OBSIDIAN, $meta, "Glowing Obsidian"); }
private function evaluateAxisOverlap(Solid $a, Solid $b) { $this->x_overlap = max(0, min($a->getMaxX(), $b->getMaxX()) - max($a->getMinX(), $b->getMinX())); $this->y_overlap = max(0, min($a->getMaxY(), $b->getMaxY()) - max($a->getMinY(), $b->getMinY())); $this->z_overlap = max(0, min($a->getMaxZ(), $b->getMaxZ()) - max($a->getMinZ(), $b->getMinZ())); }
public function __construct() { parent::__construct(self::SPONGE, "Sponge"); $this->hardness = 3; }
public function __construct() { parent::__construct(self::PODZOL, 0, "Podzol"); $this->hardness = 2.5; }
public function __construct() { parent::__construct(self::BOOKSHELF, 0, "Bookshelf"); $this->hardness = 7.5; }
public function __construct($meta = 0) { parent::__construct(self::NETHER_REACTOR, $meta, "Nether Reactor"); $this->isActivable = true; }