Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 6180e4e

Browse files
committed
Improve documentation
1 parent 14ecc17 commit 6180e4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

patchwork-events-world/src/main/java/net/minecraftforge/event/world/BlockEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public boolean isCancelable() {
119119
* <strong>Note well:</strong> the {@link #harvester} player field is null in a variety of scenarios. Code expecting null.
120120
*
121121
* <p>The {@link #dropChance} is used to determine which items in this array will actually drop, compared to a random number. If you wish, you
122-
* can pre-filter yourself, and set {@link #dropChance} to 1.0f to always drop the contents of the {@link #drops} array.
122+
* can pre-filter yourself, and set {@link #dropChance} to 1.0f to always drop the contents of the {@link #drops} array.</p>
123123
*
124-
* <p>{@link #isSilkTouching} is set if this is considered a silk touch harvesting operation, vs a normal harvesting operation. Act accordingly.
124+
* <p>{@link #isSilkTouching} is set if this is considered a silk touch harvesting operation, vs a normal harvesting operation. Act accordingly.</p>
125125
*/
126126
public static class HarvestDropsEvent extends BlockEvent {
127127
private final int fortuneLevel;

patchwork-events-world/src/main/java/net/patchworkmc/impl/event/world/WorldEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static void onWorldSave(IWorld world) {
6464
MinecraftForge.EVENT_BUS.post(new WorldEvent.Save(world));
6565
}
6666

67-
// TODO: Leaving this unimplemented is intentional. See: https://github.com/MinecraftForge/MinecraftForge/issues/5828
67+
// TODO: Leaving this unfired is intentional. See: https://github.com/MinecraftForge/MinecraftForge/issues/5828
6868
public static float fireBlockHarvesting(DefaultedList<ItemStack> drops, World world, BlockPos pos, BlockState state, int fortune, float dropChance, boolean silkTouch, PlayerEntity player) {
6969
BlockEvent.HarvestDropsEvent event = new BlockEvent.HarvestDropsEvent(world, pos, state, fortune, dropChance, drops, player, silkTouch);
7070
MinecraftForge.EVENT_BUS.post(event);

0 commit comments

Comments
 (0)