Skip to content

Commit f0887a8

Browse files
committed
Corrected the way the document is written.
1 parent e39b79b commit f0887a8

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/tedo0627/redstonecircuit/block/PistonResolver.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ class PistonResolver {
1919
private bool $sticky;
2020
private bool $push;
2121

22-
/** @var Block[] $break */
22+
/** @var Block[] */
2323
private array $break = [];
24-
/** @var Block[] $attach */
24+
/** @var Block[] */
2525
private array $attach = [];
2626

27-
/** @var int[] $checked */
27+
/** @var int[] */
2828
private array $checked = [];
2929

3030
private bool $success = false;

src/tedo0627/redstonecircuit/block/PistonTrait.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ trait PistonTrait {
1212
protected int $state = 0;
1313
protected int $newState = 0;
1414

15+
/** @var int[] */
1516
protected array $breakBlocks = [];
17+
/** @var int[] */
1618
protected array $attachedBlocks = [];
1719

1820
public function getProgress(): float {
@@ -52,7 +54,7 @@ public function getBreakBlocks(): array {
5254
return $this->breakBlocks;
5355
}
5456

55-
/** @var int[] $breakBlocks */
57+
/** @param int[] $breakBlocks */
5658
public function setBreakBlocks(array $breakBlocks): void {
5759
$this->breakBlocks = $breakBlocks;
5860
}
@@ -69,7 +71,7 @@ public function getAttachedBlocks(): array {
6971
return $this->attachedBlocks;
7072
}
7173

72-
/** @var int[] $attachedBlocks */
74+
/** @param int[] $attachedBlocks */
7375
public function setAttachedBlocks(array $attachedBlocks): void {
7476
$this->attachedBlocks = $attachedBlocks;
7577
}

src/tedo0627/redstonecircuit/block/mechanism/BlockDispenser.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ class BlockDispenser extends Opaque implements IRedstoneComponent {
5353

5454
protected static bool $init = false;
5555
protected static DispenseItemBehavior $default;
56-
/**
57-
* @var DispenseItemBehavior[]
58-
*/
56+
/** @var DispenseItemBehavior[] */
5957
protected static array $behaviors = [];
6058

6159
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo) {

src/tedo0627/redstonecircuit/event/BlockPistonExtendEvent.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
class BlockPistonExtendEvent extends BlockPistonEvent {
99

10-
/** @param Block[] $moveBlocks */
10+
/** @var Block[] */
1111
private array $moveBlocks;
12-
/** @param Block[] $breakBlocks */
12+
/** @var Block[] */
1313
private array $breakBlocks;
1414

1515
/**

src/tedo0627/redstonecircuit/event/BlockPistonRetractEvent.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
class BlockPistonRetractEvent extends BlockPistonEvent {
99

10-
/** @param Block[] $moveBlocks */
10+
/** @var Block[] */
1111
private array $moveBlocks;
12-
/** @param Block[] $breakBlocks */
12+
/** @var Block[] */
1313
private array $breakBlocks;
1414

1515
/**

0 commit comments

Comments
 (0)