Package 

Interface DropStrategy

  • All Implemented Interfaces:

    
    public interface DropStrategy
    
                        

    Defines how drops are obtained within MythicDrops.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getDropsForCreatureSpawnEvent

         abstract List<Pair<ItemStack, Double>> getDropsForCreatureSpawnEvent(CreatureSpawnEvent event)

        Determines which drops should be given on a CreatureSpawnEvent. Returns a list of ItemStacks and their respective drop chances.

        Parameters:
        event - CreatureSpawnEvent to handle
      • getDropsForEntityDeathEvent

         abstract List<Pair<ItemStack, Double>> getDropsForEntityDeathEvent(EntityDeathEvent event)

        Determines which drops should be given on a EntityDeathEvent. Returns a list of ItemStacks and their respective drop chances.

        Parameters:
        event - EntityDeathEvent to handle