hopefully replaced spaces with tabs everywhere

This commit is contained in:
GameHerobrine 2024-08-17 16:21:02 +03:00
parent ed4f820ff3
commit 89eb7097a3
42 changed files with 324 additions and 324 deletions

View file

@ -259,14 +259,14 @@ class Item{
//TODO remove?
public function getPickaxeLevel(){ //Returns false or level of the pickaxe
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,
};
}
public function isAxe(){

View file

@ -12,14 +12,14 @@ class IronDoorBlock extends DoorBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
2 => 0.65,
1 => 3.75,
default => 25,
};
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
2 => 0.65,
1 => 3.75,
default => 25,
};
}
public function getDrops(Item $item, Player $player){

View file

@ -94,14 +94,14 @@ class SlabBlock extends TransparentBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){
@ -113,4 +113,4 @@ class SlabBlock extends TransparentBlock{
return array();
}
}
}
}

View file

@ -90,14 +90,14 @@ class WoodSlabBlock extends TransparentBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
}
public function getDrops(Item $item, Player $player){
@ -105,4 +105,4 @@ class WoodSlabBlock extends TransparentBlock{
array($this->id, $this->meta & 0x07, 1),
);
}
}
}

View file

@ -10,14 +10,14 @@ class WoodStairsBlock extends StairBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
}
public function getDrops(Item $item, Player $player){
@ -25,4 +25,4 @@ class WoodStairsBlock extends StairBlock{
array($this->id, 0, 1),
);
}
}
}

View file

@ -11,14 +11,14 @@ class CoalOreBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
2 => 0.4,
1 => 2.25,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
2 => 0.4,
1 => 2.25,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -31,4 +31,4 @@ class CoalOreBlock extends SolidBlock{
}
}
}
}

View file

@ -11,11 +11,11 @@ class DiamondOreBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -27,4 +27,4 @@ class DiamondOreBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -19,11 +19,11 @@ class GlowingRedstoneOreBlock extends SolidBlock implements LightingBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -36,4 +36,4 @@ class GlowingRedstoneOreBlock extends SolidBlock implements LightingBlock{
}
}
}
}

View file

@ -11,11 +11,11 @@ class GoldOreBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -27,4 +27,4 @@ class GoldOreBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,12 +11,12 @@ class IronOreBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -28,4 +28,4 @@ class IronOreBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,12 +11,12 @@ class LapisOreBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -29,4 +29,4 @@ class LapisOreBlock extends SolidBlock{
}
}
}
}

View file

@ -11,14 +11,14 @@ class BricksBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class BricksBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -56,14 +56,14 @@ class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.7,
4 => 0.9,
3 => 1.35,
2 => 0.45,
1 => 2.65,
default => 17.5,
};
return match ($item->getPickaxeLevel()) {
5 => 0.7,
4 => 0.9,
3 => 1.35,
2 => 0.45,
1 => 2.65,
default => 17.5,
};
}
public function getDrops(Item $item, Player $player){
@ -82,4 +82,4 @@ class BurningFurnaceBlock extends SolidBlock implements LightingBlock{
}
return $drops;
}
}
}

View file

@ -11,14 +11,14 @@ class CoalBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
2 => 0.65,
1 => 3.75,
default => 25,
};
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
2 => 0.65,
1 => 3.75,
default => 25,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class CoalBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,14 +11,14 @@ class CobblestoneBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class CobblestoneBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,11 +11,11 @@ class DiamondBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
default => 25,
};
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
default => 25,
};
}
public function getDrops(Item $item, Player $player){
@ -27,4 +27,4 @@ class DiamondBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -22,14 +22,14 @@ class DoubleSlabBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){

View file

@ -18,14 +18,14 @@ class DoubleWoodSlabBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
return match ($item->isAxe()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 3,
};
}
public function getDrops(Item $item, Player $player){
@ -34,4 +34,4 @@ class DoubleWoodSlabBlock extends SolidBlock{
);
}
}
}

View file

@ -11,11 +11,11 @@ class GoldBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -27,4 +27,4 @@ class GoldBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -58,14 +58,14 @@ class IceBlock extends TransparentBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.1,
4 => 0.15,
3 => 0.2,
2 => 0.1,
1 => 0.4,
default => 0.75,
};
return match ($item->getPickaxeLevel()) {
5 => 0.1,
4 => 0.15,
3 => 0.2,
2 => 0.1,
1 => 0.4,
default => 0.75,
};
}
public function getDrops(Item $item, Player $player){

View file

@ -11,12 +11,12 @@ class IronBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
default => 25,
};
return match ($item->getPickaxeLevel()) {
5 => 0.95,
4 => 1.25,
3 => 1.9,
default => 25,
};
}
public function getDrops(Item $item, Player $player){
@ -28,4 +28,4 @@ class IronBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,12 +11,12 @@ class LapisBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
return match ($item->getPickaxeLevel()) {
5 => 0.6,
4 => 0.75,
3 => 1.15,
default => 15,
};
}
public function getDrops(Item $item, Player $player){
@ -29,4 +29,4 @@ class LapisBlock extends SolidBlock{
}
}
}
}

View file

@ -11,14 +11,14 @@ class MossStoneBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class MossStoneBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,14 +11,14 @@ class NetherBricksBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 10,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class NetherBricksBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -11,14 +11,14 @@ class NetherrackBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.1,
4 => 0.1,
3 => 0.15,
2 => 0.05,
1 => 0.3,
default => 2,
};
return match ($item->getPickaxeLevel()) {
5 => 0.1,
4 => 0.1,
3 => 0.15,
2 => 0.05,
1 => 0.3,
default => 2,
};
}
public function getDrops(Item $item, Player $player){
@ -30,4 +30,4 @@ class NetherrackBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -17,14 +17,14 @@ class QuartzBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.15,
4 => 0.2,
3 => 0.3,
2 => 0.1,
1 => 0.6,
default => 4,
};
return match ($item->getPickaxeLevel()) {
5 => 0.15,
4 => 0.2,
3 => 0.3,
2 => 0.1,
1 => 0.6,
default => 4,
};
}
public function getDrops(Item $item, Player $player){
@ -36,4 +36,4 @@ class QuartzBlock extends SolidBlock{
return array();
}
}
}
}

View file

@ -17,14 +17,14 @@ class SandstoneBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.15,
4 => 0.2,
3 => 0.3,
2 => 0.1,
1 => 0.6,
default => 4,
};
return match ($item->getPickaxeLevel()) {
5 => 0.15,
4 => 0.2,
3 => 0.3,
2 => 0.1,
1 => 0.6,
default => 4,
};
}
public function getDrops(Item $item, Player $player){
@ -37,4 +37,4 @@ class SandstoneBlock extends SolidBlock{
}
}
}
}

View file

@ -11,14 +11,14 @@ class StoneBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 7.5,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 7.5,
};
}
public function getDrops(Item $item, Player $player){
@ -31,4 +31,4 @@ class StoneBlock extends SolidBlock{
}
}
}
}

View file

@ -18,14 +18,14 @@ class StoneBricksBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 7.5,
};
return match ($item->getPickaxeLevel()) {
5 => 0.4,
4 => 0.5,
3 => 0.75,
2 => 0.25,
1 => 1.5,
default => 7.5,
};
}
public function getDrops(Item $item, Player $player){
@ -38,4 +38,4 @@ class StoneBricksBlock extends SolidBlock{
}
}
}
}

View file

@ -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,
};
}
}

View file

@ -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,
};
}
}

View file

@ -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,
};
}
}

View file

@ -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,
};
}
}

View file

@ -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,
};
}
}