1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

forgot one

This commit is contained in:
dniym 2020-07-26 10:51:18 -04:00
parent 65f8519805
commit 260a6f4f61

View File

@ -12,8 +12,8 @@ import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
/** /**
* This interface, when attached to a {@link SlimefunItem}, provides an easy method for adding * This interface, when attached to a {@link SlimefunItem}, provides an easy method for adding
* a % chance to drop for an {@link SlimefunItem} on {@link entityDeathEvent} or {@link EntityItemDropEvent}, this chance is 0-100 * a % chance to drop for an {@link SlimefunItem} on {@link entityDeathEvent}, this chance is 0-100
* and used in conjunction with the MOB_DROP {@link RecipeType} or the BARTER_DROP {@link RecipeType}. * and used in conjunction with the MOB_DROP {@link RecipeType}
* *
* @author dNiym * @author dNiym
* *
@ -29,14 +29,6 @@ public interface RandomMobDrop extends ItemAttribute {
* added to the dropList when {@link EntityType} (specified in the recipe) * added to the dropList when {@link EntityType} (specified in the recipe)
* is killed by the {@link Player} for a MOB_DROP {@link RecipeType}. * is killed by the {@link Player} for a MOB_DROP {@link RecipeType}.
* *
* Alternatively if the {@link RecipeType} is set to BARTER_DROP the item
* will then have its % chance to be dropped only by bartering with the
* Piglin creatures.
*
* 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+)
*
* @return The integer chance (0-100%) {@link SlimefunItem} has to drop. * @return The integer chance (0-100%) {@link SlimefunItem} has to drop.
*/ */
int getMobDropChance(); int getMobDropChance();