Name remaining world event (#2458)

* Name remaining world event

* Add unpick definition, remove trailing space in javadoc

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

This reverts commit 93edb9020c.

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

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

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
ByMartrixX 2021-06-02 06:14:12 -04:00 committed by GitHub
parent 7f35349e0f
commit 5664605164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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}

View File

@ -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
@ -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