Interface PiglinBarterDrop

All Superinterfaces:
ItemAttribute
All Known Implementing Classes:
StrangeNetherGoo

public interface PiglinBarterDrop extends ItemAttribute
This interface, when attached to a SlimefunItem, provides a variable (0-100%) chance for a SlimefunItem to be dropped by a Piglin on EntityDropItemEvent.
Author:
dNiym
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Implement this method to make this SlimefunItem have a variable chance of being dropped by a Piglin when bartering with them.

    Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute

    getId
  • Method Details

    • getBarteringLootChance

      int getBarteringLootChance()
      Implement this method to make this SlimefunItem have a variable chance of being dropped by a Piglin when bartering with them. This interface should be used with the RecipeType.BARTER_DROP. It is recommended that this chance is kept reasonably low to feel like a vanilla drop as a 100% chance will completely override all Piglin barter drops. (NOTE: this feature only exists in 1.16+)
      Returns:
      The integer chance (1-99%) this SlimefunItem has to drop.