Allow Blocks to specify their max stack size

This commit is contained in:
Dylan K. Taylor
2021-06-30 19:28:16 +01:00
parent 91d54ff0ad
commit 7a35fdb1bb
8 changed files with 29 additions and 41 deletions

View File

@ -439,6 +439,13 @@ class Block{
return 0;
}
/**
* Returns the maximum number of this block that can fit into a single item stack.
*/
public function getMaxStackSize() : int{
return 64;
}
/**
* Returns the chance that the block will catch fire from nearby fire sources. Higher values lead to faster catching
* fire.