diff --git a/src/main/java/net/minecraftforge/event/GrindstoneEvent.java b/src/main/java/net/minecraftforge/event/GrindstoneEvent.java index df51c8d23c..734a5478e0 100644 --- a/src/main/java/net/minecraftforge/event/GrindstoneEvent.java +++ b/src/main/java/net/minecraftforge/event/GrindstoneEvent.java @@ -41,10 +41,7 @@ public abstract class GrindstoneEvent extends Event } /** - * This is the experience amount determined by the event, it will be -1 unless a mod calls {@link #setXp(int)}.
- * If set to a non-negative value, that value will be used instead of running vanilla behavior.
- * If the value is negative, the vanilla behavior for calculating experience will run.
- * Ignored if the output is empty or the event is canceled. + * This is the experience amount determined by the event. It will be {@code -1} unless {@link #setXp(int)} is called.
* @return The experience amount given to the player.
*/ public int getXp() @@ -64,11 +61,22 @@ public abstract class GrindstoneEvent extends Event /** * This event is {@link Cancelable}
* {@link OnplaceItem} is fired when the inputs to a grindstone are changed.
- * It is called from {@link GrindstoneMenu#createResult()}.
- * If the event is canceled, vanilla behavior will not run, and the output will be set to {@link ItemStack#EMPTY}.
- * If the event is not canceled, but the output is not empty, it will set the output and not run vanilla behavior.
- * If the event is not canceled and the output is empty, and the event is not canceled, the stack will be determined using vanilla behavior.
- * if the amount of experience is larger than or equal 0, the XP will be that value instead of using the vanilla logic. Ignored if the output is empty or the event is canceled.
+ * + * The following rules apply: + * */ @Cancelable public static class OnplaceItem extends GrindstoneEvent