mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Add ItemDrop, ItemRegistry and the Loot and BlockDrops services
This commit is contained in:
1 parent
ba96e0cbc2
commit
ad581be494
8 files changed
+221
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package com.volmit.item;
|
||||
|
||||
import java.util.OptionalInt;
|
||||
|
||||
/** What a module may ask the platform about items, so that its decisions follow the item they concern. Item keys are
|
||||
* written as in packs: {@code diamond_sword}, {@code minecraft:diamond_sword}, or a custom item of a provider such as
|
||||
* {@code itemsadder:ruby}. Safe for concurrent use.
|
||||
*/
|
||||
public interface ItemRegistry {
|
||||
/**
|
||||
* The most damage an item of this kind takes before it breaks, 0 for an item that cannot be damaged; empty when no
|
||||
* item is known by {@code key}.
|
||||
*/
|
||||
OptionalInt maxDurability(String key);
|
||||
}
|
||||
Reference in new issue
Block a user