public class LootingManager extends Object
Constructor and Description |
---|
LootingManager() |
Modifier and Type | Method and Description |
---|---|
static LootData |
generate(GlowLivingEntity entity)
Returns items and experience that the given entity drops when killed.
|
static void |
load()
Registers the built-in loot data.
|
public static void load() throws Exception
Exception
- if some loot data is missing or invalidpublic static LootData generate(GlowLivingEntity entity)
entity
- the entityLootData
instance whose contents the entity can dropCopyright © 2021. All rights reserved.