Class LootingManager

java.lang.Object
net.glowstone.util.loot.LootingManager

public class LootingManager extends Object
  • Constructor Details

    • LootingManager

      public LootingManager()
  • Method Details

    • load

      public static void load() throws Exception
      Registers the built-in loot data.
      Throws:
      Exception - if some loot data is missing or invalid
    • generate

      public static LootData generate(GlowLivingEntity entity)
      Returns items and experience that the given entity drops when killed.
      Parameters:
      entity - the entity
      Returns:
      a LootData instance whose contents the entity can drop