Added API method Item::canStackWith()

This commit is contained in:
Dylan K. Taylor
2021-06-29 19:52:52 +01:00
parent 32d7b1e6af
commit 7ba573db77
6 changed files with 13 additions and 5 deletions

View File

@ -660,6 +660,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- `WritableBookPage`
- The following API methods have been added:
- `Armor->getArmorSlot()`
- `Item->canStackWith()`: returns whether the two items could be contained in the same inventory slot, ignoring count and stack size limits
- `Potion->getType()`: returns a `PotionType` enum object containing information such as the applied effects
- `ProjectileItem->createEntity()`: returns a new instance of the projectile entity that will be thrown
- The following classes have been removed: