code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -6,17 +6,17 @@ class GlowstoneBlock extends TransparentBlock implements LightingBlock{
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
$this->hardness = 1.5;
}
public function getMaxLightValue(){
return 15;
}
public function getDrops(Item $item, Player $player){
return array(
array(GLOWSTONE_DUST, 0, mt_rand(2, 4)),
);
return [
[GLOWSTONE_DUST, 0, mt_rand(2, 4)],
];
}
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
return [new AxisAlignedBB($x, $y, $z, $x + 1, $y + 1, $z + 1)];
}