mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Block: deprecate isSolid()
As discussed many years ago in #2551, no one actually knows what this property actually means. It definitely isn't the conventionally expected definition of 'solid' found in the real world, as signs are solid but flower pots are not.
This commit is contained in:
parent
9b03b082ab
commit
288bd4018b
@ -576,6 +576,15 @@ class Block{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated TL;DR: Don't use this function. Its results are confusing and inconsistent.
|
||||||
|
*
|
||||||
|
* No one is sure what the meaning of this property actually is. It's borrowed from Minecraft Java Edition, and is
|
||||||
|
* used by various blocks for support checks.
|
||||||
|
*
|
||||||
|
* Things like signs and banners are considered "solid" despite having no collision box, and things like skulls and
|
||||||
|
* flower pots are considered non-solid despite obviously being "solid" in the conventional, real-world sense.
|
||||||
|
*/
|
||||||
public function isSolid() : bool{
|
public function isSolid() : bool{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user