mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
hopefully replaced spaces with tabs everywhere
This commit is contained in:
parent
ed4f820ff3
commit
89eb7097a3
42 changed files with 324 additions and 324 deletions
|
|
@ -7,14 +7,14 @@ abstract class ItemAxe extends ItemTool
|
|||
}
|
||||
|
||||
public function getLevel(){
|
||||
return match ($this->id) {
|
||||
WOODEN_AXE => 1,
|
||||
GOLDEN_AXE => 2,
|
||||
STONE_AXE => 3,
|
||||
IRON_AXE => 4,
|
||||
DIAMOND_AXE => 5,
|
||||
default => false,
|
||||
};
|
||||
return match ($this->id) {
|
||||
WOODEN_AXE => 1,
|
||||
GOLDEN_AXE => 2,
|
||||
STONE_AXE => 3,
|
||||
IRON_AXE => 4,
|
||||
DIAMOND_AXE => 5,
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,14 +16,14 @@ abstract class ItemHoe extends ItemTool
|
|||
}
|
||||
|
||||
public function getLevel(){
|
||||
return match ($this->id) {
|
||||
WOODEN_HOE => 1,
|
||||
GOLDEN_HOE => 2,
|
||||
STONE_HOE => 3,
|
||||
IRON_HOE => 4,
|
||||
DIAMOND_HOE => 5,
|
||||
default => false,
|
||||
};
|
||||
return match ($this->id) {
|
||||
WOODEN_HOE => 1,
|
||||
GOLDEN_HOE => 2,
|
||||
STONE_HOE => 3,
|
||||
IRON_HOE => 4,
|
||||
DIAMOND_HOE => 5,
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,14 +12,14 @@ abstract class ItemPickaxe extends ItemTool
|
|||
}
|
||||
|
||||
public function getLevel(){
|
||||
return match ($this->id) {
|
||||
WOODEN_PICKAXE => 1,
|
||||
GOLDEN_PICKAXE => 2,
|
||||
STONE_PICKAXE => 3,
|
||||
IRON_PICKAXE => 4,
|
||||
DIAMOND_PICKAXE => 5,
|
||||
default => false,
|
||||
};
|
||||
return match ($this->id) {
|
||||
WOODEN_PICKAXE => 1,
|
||||
GOLDEN_PICKAXE => 2,
|
||||
STONE_PICKAXE => 3,
|
||||
IRON_PICKAXE => 4,
|
||||
DIAMOND_PICKAXE => 5,
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ class ItemShovel extends ItemTool
|
|||
}
|
||||
|
||||
public function getLevel(){
|
||||
return match ($this->id) {
|
||||
WOODEN_SHOVEL => 1,
|
||||
GOLDEN_SHOVEL => 2,
|
||||
STONE_SHOVEL => 3,
|
||||
IRON_SHOVEL => 4,
|
||||
DIAMOND_SHOVEL => 5,
|
||||
default => false,
|
||||
};
|
||||
return match ($this->id) {
|
||||
WOODEN_SHOVEL => 1,
|
||||
GOLDEN_SHOVEL => 2,
|
||||
STONE_SHOVEL => 3,
|
||||
IRON_SHOVEL => 4,
|
||||
DIAMOND_SHOVEL => 5,
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,14 +8,14 @@ abstract class ItemSword extends ItemTool
|
|||
}
|
||||
|
||||
public function getLevel(){
|
||||
return match ($this->id) {
|
||||
WOODEN_SWORD => 1,
|
||||
GOLDEN_SWORD => 2,
|
||||
STONE_SWORD => 3,
|
||||
IRON_SWORD => 4,
|
||||
DIAMOND_SWORD => 5,
|
||||
default => false,
|
||||
};
|
||||
return match ($this->id) {
|
||||
WOODEN_SWORD => 1,
|
||||
GOLDEN_SWORD => 2,
|
||||
STONE_SWORD => 3,
|
||||
IRON_SWORD => 4,
|
||||
DIAMOND_SWORD => 5,
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue