Block: add clarifying note about isSameType()

I'm still not happy with this method though...
This commit is contained in:
Dylan K. Taylor 2023-04-13 13:40:53 +01:00
parent b122703fd0
commit 6acabf7a1b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -140,6 +140,9 @@ class Block{
/**
* 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{
return $this->getTypeId() === $other->getTypeId();