mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Block: add clarifying note about isSameType()
I'm still not happy with this method though...
This commit is contained in:
parent
b122703fd0
commit
6acabf7a1b
@ -140,6 +140,9 @@ class Block{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the given block has an equivalent type to this one. This compares the type IDs.
|
* Returns whether the given block has an equivalent type to this one. This compares the type IDs.
|
||||||
|
*
|
||||||
|
* Type properties (e.g. colour, skull type, etc.) are not compared. This means that different colours of wool,
|
||||||
|
* concrete, etc. will all be considered as having the same type.
|
||||||
*/
|
*/
|
||||||
public function isSameType(Block $other) : bool{
|
public function isSameType(Block $other) : bool{
|
||||||
return $this->getTypeId() === $other->getTypeId();
|
return $this->getTypeId() === $other->getTypeId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user