mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
small changes to armor system + maxstacksize of armor is fixed
This commit is contained in:
parent
39f0b29115
commit
f2da48c7e3
48 changed files with 312 additions and 136 deletions
|
|
@ -4,5 +4,7 @@ class BowItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(BOW, 0, $count, "Bow");
|
||||
}
|
||||
|
||||
public function isTool(){ //it is tool too
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,4 +5,7 @@ class DiamondAxeItem extends Item{
|
|||
parent::__construct(DIAMOND_AXE, $meta, $count, "Diamond Axe");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class DiamondHoeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_HOE, $meta, $count, "Diamond Hoe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,4 +5,7 @@ class DiamondPickaxeItem extends Item{
|
|||
parent::__construct(DIAMOND_PICKAXE, $meta, $count, "Diamond Pickaxe");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,4 +5,7 @@ class DiamondShovelItem extends Item{
|
|||
parent::__construct(DIAMOND_SHOVEL, $meta, $count, "Diamond Shovel");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,7 @@ class DiamondSwordItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(DIAMOND_SWORD, $meta, $count, "Diamond Sword");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -19,4 +19,8 @@ class FlintSteelItem extends Item{
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class GoldenAxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_AXE, $meta, $count, "Golden Axe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class GoldenHoeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_HOE, $meta, $count, "Golden Hoe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class GoldenPickaxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_PICKAXE, $meta, $count, "Golden Pickaxe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class GoldenShovelItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_SHOVEL, $meta, $count, "Golden Shovel");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,7 @@ class GoldenSwordItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(GOLDEN_SWORD, $meta, $count, "Golden Sword");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class IronAxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_AXE, $meta, $count, "Iron Axe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class IronHoeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_HOE, $meta, $count, "Iron Hoe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class IronPickaxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_PICKAXE, $meta, $count, "Iron Pickaxe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class IronShovelItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_SHOVEL, $meta, $count, "Iron Shovel");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,7 @@ class IronSwordItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(IRON_SWORD, $meta, $count, "Iron Sword");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class ShearsItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(SHEARS, $meta, $count, "Shears");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class StoneAxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(STONE_AXE, $meta, $count, "Stone Axe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class StoneHoeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(STONE_HOE, $meta, $count, "Stone Hoe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class StonePickaxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(STONE_PICKAXE, $meta, $count, "Stone Pickaxe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,7 @@ class StoneSwordItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(STONE_SWORD, $meta, $count, "Stone Sword");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class WoodenAxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(WOODEN_AXE, $meta, $count, "Wooden Axe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,8 @@ class WoodenHoeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(WOODEN_HOE, $meta, $count, "Wooden Hoe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -4,5 +4,8 @@ class WoodenPickaxeItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(WOODEN_PICKAXE, $meta, $count, "Wooden Pickaxe");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,8 @@ class WoodenShovelItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(WOODEN_SHOVEL, $meta, $count, "Wooden Shovel");
|
||||
}
|
||||
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,7 @@ class WoodenSwordItem extends Item{
|
|||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(WOODEN_SWORD, $meta, $count, "Wooden Sword");
|
||||
}
|
||||
|
||||
public function isTool(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue