Interface DroppableEntity


public interface DroppableEntity
Interface for make AbstractEntity droppable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method to handle the dropping of items when the entity is killed.
    Get the drops of the entity String is the material identifier, EntityDrop is the drop information (chance, quantity, etc.)
  • Method Details

    • getDrops

      Map<String,EntityDrop> getDrops()
      Get the drops of the entity String is the material identifier, EntityDrop is the drop information (chance, quantity, etc.)
      Returns:
      Map of item identifiers to their corresponding EntityDrop objects
    • drop

      void drop()
      Method to handle the dropping of items when the entity is killed. This method should be called when the entity dies to process and drop the items defined in the getDrops() method.