Skip to content

Commit

Permalink
Name remaining world event (FabricMC#2458)
Browse files Browse the repository at this point in the history
* Name remaining world event

* Add unpick definition, remove trailing space in javadoc

* Revert "Add unpick definition, remove trailing space in javadoc"

This reverts commit 93edb90.

* Add unpick definition, remove trailing space in javadoc (this time without extra things)

* Update mappings/net/minecraft/world/WorldEvents.mapping

Co-authored-by: liach <[email protected]>

Co-authored-by: liach <[email protected]>
  • Loading branch information
IotaBread and liach authored Jun 2, 2021
1 parent 7f35349 commit 5664605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mappings/net/minecraft/world/WorldEvents.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,9 @@ CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents
COMMENT A Bat takes off.
COMMENT <br>Plays the bat take off sound event.
COMMENT <p>Called by {@link net.minecraft.entity.passive.BatEntity#mobTick() BatEntity#mobTick}
FIELD field_33511 BONE_MEAL_USED I
COMMENT Bone meal is used.
COMMENT <br>Plays the bone meal item used sound event and spawns happy villager particles.
COMMENT <p>Called by {@link net.minecraft.item.BoneMealItem#useOnBlock(net.minecraft.item.ItemUsageContext) BoneMealItem#useOnBlock},
COMMENT an anonymus class in {@link net.minecraft.block.dispenser.DispenserBehavior#registerDefaults() DispenserBehavior#registerDefaults},
COMMENT and {@link net.minecraft.entity.ai.brain.task.BoneMealTask#keepRunning(net.minecraft.server.world.ServerWorld, net.minecraft.entity.passive.VillagerEntity, long) BoneMealTask#keepRunning}
3 changes: 2 additions & 1 deletion unpick-definitions/world_events.unpick
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ constant world_events net/minecraft/world/WorldEvents ELECTRICITY_SPARKS
constant world_events net/minecraft/world/WorldEvents BLOCK_WAXED
constant world_events net/minecraft/world/WorldEvents WAX_REMOVED
constant world_events net/minecraft/world/WorldEvents BLOCK_SCRAPED
constant world_events net/minecraft/world/WorldEvents BONE_MEAL_USED

target_method net/minecraft/world/WorldAccess syncWorldEvent (Lnet/minecraft/entity/player/PlayerEntity;ILnet/minecraft/util/math/BlockPos;I)V
param 1 world_events
Expand All @@ -88,4 +89,4 @@ target_method net/minecraft/network/packet/s2c/play/WorldEventS2CPacket getEvent
target_method net/minecraft/block/DoorBlock getOpenSoundEventId ()I
return world_events
target_method net/minecraft/block/DoorBlock getCloseSoundEventId ()I
return world_events
return world_events

0 comments on commit 5664605

Please sign in to comment.