Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit f6ef7a5

Browse files
committed
バリアブロックの挙動を修正
1 parent 0b7b9a7 commit f6ef7a5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace NeiroNetwork\ExperimentalFeatures\override\expert\block;
6+
7+
use pocketmine\block\Block;
8+
use pocketmine\block\BlockBreakInfo;
9+
use pocketmine\block\Opaque;
10+
use pocketmine\block\VanillaBlocks;
11+
12+
class BarrierBlock extends BlockOverrideExpert{
13+
14+
protected function barrier() : Block{
15+
$b = VanillaBlocks::BARRIER();
16+
return new class(
17+
$b->getIdInfo(),
18+
$b->getName(),
19+
BlockBreakInfo::indestructible(18000004.0)
20+
) extends Opaque{
21+
public function getLightFilter() : int{
22+
return 0;
23+
}
24+
};
25+
}
26+
}

0 commit comments

Comments
 (0)