mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
</3
This commit is contained in:
parent
625e9ca71f
commit
11c1b77f5e
4 changed files with 55 additions and 0 deletions
9
src/material/ArmorMaterial.php
Normal file
9
src/material/ArmorMaterial.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
/*value - durability*/
|
||||
class ArmorMaterial{
|
||||
const LEATHER = 5; //when enums
|
||||
const CHAIN = 15;
|
||||
const GOLD = 7;
|
||||
const IRON = 15;
|
||||
const DIAMOND = 33;
|
||||
}
|
||||
18
src/material/materials/DecorationMaterial.php
Normal file
18
src/material/materials/DecorationMaterial.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
class DecorationMaterial extends Material
|
||||
{
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
|
||||
$this->flammable = false;
|
||||
$this->translucent = false;
|
||||
$this->alwaysDestroyable = false;
|
||||
$this->replaceable = false;
|
||||
|
||||
$this->blocksMotion = false;
|
||||
$this->blocksLight = false;
|
||||
$this->isSolid = false;
|
||||
}
|
||||
}
|
||||
|
||||
14
src/material/materials/GasMaterial.php
Normal file
14
src/material/materials/GasMaterial.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class GasMaterial extends Material
|
||||
{
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
|
||||
$this->blocksLight = false;
|
||||
$this->blocksMotion = false;
|
||||
$this->isSolid = false;
|
||||
$this->replaceable = true;
|
||||
}
|
||||
}
|
||||
|
||||
14
src/material/materials/LiquidMaterial.php
Normal file
14
src/material/materials/LiquidMaterial.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class LiquidMaterial extends Material
|
||||
{
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
|
||||
$this->blocksMotion = false;
|
||||
$this->isLiquid = true;
|
||||
$this->isSolid = false;
|
||||
$this->replaceable = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue