Class WorldEvents

java.lang.Object
net.minecraft.world.WorldEvents

public class WorldEvents extends Object
Constants of World Event IDs.

World Events are used to trigger things on the client from the server side. Most commonly, playing sound events or spawning particles.

Some events have an extra data integer sent alongside them.
Some events are global, meaning they will be sent to every player regardless of their position.

Events are sent from the server to the client using WorldEventS2CPacket, received on the client by ClientPlayNetworkHandler#onWorldEvent, synced by ClientWorld#syncWorldEvent and ClientWorld#syncGlobalEvent (for regular and global events respectively), and finally processed by

invalid reference
WorldRenderer#processWorldEvent
and
invalid reference
WorldRenderer#processGlobalEvent
(for regular and global events respectively).
Mappings:
Namespace Name
named net/minecraft/world/WorldEvents
intermediary net/minecraft/class_6088
official doz
  • Field Details

    • DISPENSER_DISPENSES

      public static final int DISPENSER_DISPENSES
      A dispenser dispenses an item.
      Plays the dispensing sound event.

      Called by BoatDispenserBehavior#playSound, FallibleItemDispenserBehavior#playSound, ItemDispenserBehavior#playSound, and

      invalid reference
      MinecartItem#DISPENSER_BEHAVIOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DISPENSER_DISPENSES Lnet/minecraft/world/WorldEvents;DISPENSER_DISPENSES:I
      intermediary field_31140 Lnet/minecraft/class_6088;field_31140:I
      official a Ldoz;a:I
    • DISPENSER_FAILS

      public static final int DISPENSER_FAILS
      A dispenser fails to dispense an item.
      Plays the dispenser fail sound event.

      Called by DispenserBlock#dispense, DropperBlock#dispense, and FallibleItemDispenserBehavior#playSound

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DISPENSER_FAILS Lnet/minecraft/world/WorldEvents;DISPENSER_FAILS:I
      intermediary field_31159 Lnet/minecraft/class_6088;field_31159:I
      official b Ldoz;b:I
    • DISPENSER_LAUNCHES_PROJECTILE

      public static final int DISPENSER_LAUNCHES_PROJECTILE
      A dispenser launches a projectile.
      Plays the dispenser launch sound event.

      Called by ProjectileDispenserBehavior#playSound

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DISPENSER_LAUNCHES_PROJECTILE Lnet/minecraft/world/WorldEvents;DISPENSER_LAUNCHES_PROJECTILE:I
      intermediary field_31160 Lnet/minecraft/class_6088;field_31160:I
      official c Ldoz;c:I
    • FIREWORK_ROCKET_SHOOTS

      public static final int FIREWORK_ROCKET_SHOOTS
      A firework rocket is shot.
      Plays the firework shoot sound event.

      Called by DispenserBehavior

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FIREWORK_ROCKET_SHOOTS Lnet/minecraft/world/WorldEvents;FIREWORK_ROCKET_SHOOTS:I
      intermediary field_31162 Lnet/minecraft/class_6088;field_31162:I
      official d Ldoz;d:I
    • FIRE_EXTINGUISHED

      public static final int FIRE_EXTINGUISHED
      Fire is extinguished.
      Plays the appropriate fire extinguish sound event.

      A 1 should be supplied as extra data if an entity was extinguished, and 0 for a block.

      Called by AbstractFireBlock#onBreak, PotionEntity#extinguishFire, and ShovelItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FIRE_EXTINGUISHED Lnet/minecraft/world/WorldEvents;FIRE_EXTINGUISHED:I
      intermediary field_31167 Lnet/minecraft/class_6088;field_31167:I
      official e Ldoz;e:I
    • JUKEBOX_STARTS_PLAYING

      public static final int JUKEBOX_STARTS_PLAYING
      A jukebox starts playing a music disc.
      Plays the appropriate music.

      The raw ID of the music disc item must be supplied as extra data.

      Called by

      invalid reference
      JukeboxBlockEntity#startPlaying
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JUKEBOX_STARTS_PLAYING Lnet/minecraft/world/WorldEvents;JUKEBOX_STARTS_PLAYING:I
      intermediary field_42760 Lnet/minecraft/class_6088;field_42760:I
      official f Ldoz;f:I
    • JUKEBOX_STOPS_PLAYING

      public static final int JUKEBOX_STOPS_PLAYING
      A jukebox stops playing a music disc.
      Stops any music currently playing.

      Called by

      invalid reference
      JukeboxBlockEntity#stopPlaying
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JUKEBOX_STOPS_PLAYING Lnet/minecraft/world/WorldEvents;JUKEBOX_STOPS_PLAYING:I
      intermediary field_42761 Lnet/minecraft/class_6088;field_42761:I
      official g Ldoz;g:I
    • GHAST_WARNS

      public static final int GHAST_WARNS
      A ghast warns its victim.
      Plays the ghast warn sound event.

      Called by GhastEntity.ShootFireballGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GHAST_WARNS Lnet/minecraft/world/WorldEvents;GHAST_WARNS:I
      intermediary field_31173 Lnet/minecraft/class_6088;field_31173:I
      official h Ldoz;h:I
    • GHAST_SHOOTS

      public static final int GHAST_SHOOTS
      A ghast shoots a fireball.
      Plays the ghast shoot sound event.

      Called by GhastEntity.ShootFireballGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GHAST_SHOOTS Lnet/minecraft/world/WorldEvents;GHAST_SHOOTS:I
      intermediary field_31174 Lnet/minecraft/class_6088;field_31174:I
      official i Ldoz;i:I
    • ENDER_DRAGON_SHOOTS

      public static final int ENDER_DRAGON_SHOOTS
      An ender dragon shoots a fireball.
      Plays the ender dragon shoot sound event.

      Called by

      invalid reference
      StrafePlayerPhase#serverTick
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENDER_DRAGON_SHOOTS Lnet/minecraft/world/WorldEvents;ENDER_DRAGON_SHOOTS:I
      intermediary field_31175 Lnet/minecraft/class_6088;field_31175:I
      official j Ldoz;j:I
    • BLAZE_SHOOTS

      public static final int BLAZE_SHOOTS
      A blaze shoots a fireball or a fire charge is shot by a dispenser.
      Plays the blaze shoot sound event.

      Called by BlazeEntity.ShootFireballGoal#tick, and DispenserBehavior

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLAZE_SHOOTS Lnet/minecraft/world/WorldEvents;BLAZE_SHOOTS:I
      intermediary field_31176 Lnet/minecraft/class_6088;field_31176:I
      official k Ldoz;k:I
    • ZOMBIE_ATTACKS_WOODEN_DOOR

      public static final int ZOMBIE_ATTACKS_WOODEN_DOOR
      A zombie attacks a wooden door.
      Plays the zombie attacking wooden door sound event.

      Called by BreakDoorGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_ATTACKS_WOODEN_DOOR Lnet/minecraft/world/WorldEvents;ZOMBIE_ATTACKS_WOODEN_DOOR:I
      intermediary field_31177 Lnet/minecraft/class_6088;field_31177:I
      official l Ldoz;l:I
    • ZOMBIE_ATTACKS_IRON_DOOR

      public static final int ZOMBIE_ATTACKS_IRON_DOOR
      A zombie attacks an iron door.
      Plays the zombie attacking iron door sound event.
      Goes unused.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_ATTACKS_IRON_DOOR Lnet/minecraft/world/WorldEvents;ZOMBIE_ATTACKS_IRON_DOOR:I
      intermediary field_31178 Lnet/minecraft/class_6088;field_31178:I
      official m Ldoz;m:I
    • ZOMBIE_BREAKS_WOODEN_DOOR

      public static final int ZOMBIE_BREAKS_WOODEN_DOOR
      A zombie breaks a wooden door.
      Plays the zombie breaking wooden door sound event.

      Called by BreakDoorGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_BREAKS_WOODEN_DOOR Lnet/minecraft/world/WorldEvents;ZOMBIE_BREAKS_WOODEN_DOOR:I
      intermediary field_31179 Lnet/minecraft/class_6088;field_31179:I
      official n Ldoz;n:I
    • WITHER_BREAKS_BLOCK

      public static final int WITHER_BREAKS_BLOCK
      A wither breaks a block.
      Plays the wither breaking block sound event.

      Called by

      invalid reference
      WitherEntity#mobTick
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WITHER_BREAKS_BLOCK Lnet/minecraft/world/WorldEvents;WITHER_BREAKS_BLOCK:I
      intermediary field_31180 Lnet/minecraft/class_6088;field_31180:I
      official o Ldoz;o:I
    • WITHER_SPAWNS

      public static final int WITHER_SPAWNS
      A wither is spawned.
      Plays the wither spawn sound event.

      This is a global event.

      Called by

      invalid reference
      WitherEntity#mobTick
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WITHER_SPAWNS Lnet/minecraft/world/WorldEvents;WITHER_SPAWNS:I
      intermediary field_31181 Lnet/minecraft/class_6088;field_31181:I
      official p Ldoz;p:I
    • WITHER_SHOOTS

      public static final int WITHER_SHOOTS
      A wither shoots a wither skull.
      Plays the wither shoot sound event.

      Called by WitherEntity#shootSkullAt

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WITHER_SHOOTS Lnet/minecraft/world/WorldEvents;WITHER_SHOOTS:I
      intermediary field_31182 Lnet/minecraft/class_6088;field_31182:I
      official q Ldoz;q:I
    • BAT_TAKES_OFF

      public static final int BAT_TAKES_OFF
      A bat takes off.
      Plays the bat take off sound event.

      Called by

      invalid reference
      BatEntity#mobTick
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BAT_TAKES_OFF Lnet/minecraft/world/WorldEvents;BAT_TAKES_OFF:I
      intermediary field_31183 Lnet/minecraft/class_6088;field_31183:I
      official r Ldoz;r:I
    • ZOMBIE_INFECTS_VILLAGER

      public static final int ZOMBIE_INFECTS_VILLAGER
      A zombie infects a villager.
      Plays the zombie infect villager sound event.

      Called by ZombieEntity#onKilledOther

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_INFECTS_VILLAGER Lnet/minecraft/world/WorldEvents;ZOMBIE_INFECTS_VILLAGER:I
      intermediary field_31114 Lnet/minecraft/class_6088;field_31114:I
      official s Ldoz;s:I
    • ZOMBIE_VILLAGER_CURED

      public static final int ZOMBIE_VILLAGER_CURED
      A zombie villager is cured.
      Plays the zombie villager cured sound event.

      Called by ZombieVillagerEntity#finishConversion

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_VILLAGER_CURED Lnet/minecraft/world/WorldEvents;ZOMBIE_VILLAGER_CURED:I
      intermediary field_31115 Lnet/minecraft/class_6088;field_31115:I
      official t Ldoz;t:I
    • ENDER_DRAGON_DIES

      public static final int ENDER_DRAGON_DIES
      An ender dragon dies.
      Plays the ender dragon death sound event.

      This is a global event.

      Called by EnderDragonEntity#updatePostDeath

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENDER_DRAGON_DIES Lnet/minecraft/world/WorldEvents;ENDER_DRAGON_DIES:I
      intermediary field_31116 Lnet/minecraft/class_6088;field_31116:I
      official u Ldoz;u:I
    • ANVIL_DESTROYED

      public static final int ANVIL_DESTROYED
      An anvil is destroyed from damage.
      Plays the anvil destroyed sound event.

      Called by AnvilBlock#onDestroyedOnLanding, and AnvilScreenHandler#onTakeOutput

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ANVIL_DESTROYED Lnet/minecraft/world/WorldEvents;ANVIL_DESTROYED:I
      intermediary field_31117 Lnet/minecraft/class_6088;field_31117:I
      official v Ldoz;v:I
    • ANVIL_USED

      public static final int ANVIL_USED
      An anvil is used.
      Plays the anvil used sound event.

      Called by AnvilScreenHandler#onTakeOutput

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ANVIL_USED Lnet/minecraft/world/WorldEvents;ANVIL_USED:I
      intermediary field_31118 Lnet/minecraft/class_6088;field_31118:I
      official w Ldoz;w:I
    • ANVIL_LANDS

      public static final int ANVIL_LANDS
      An anvil lands after falling.
      Plays the anvil landing sound event.

      Called by AnvilBlock#onLanding

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ANVIL_LANDS Lnet/minecraft/world/WorldEvents;ANVIL_LANDS:I
      intermediary field_31119 Lnet/minecraft/class_6088;field_31119:I
      official x Ldoz;x:I
    • TRAVEL_THROUGH_PORTAL

      public static final int TRAVEL_THROUGH_PORTAL
      A portal is traveled through.
      Plays the portal travel sound event directly through the client's sound manager.

      Called by

      invalid reference
      ServerPlayerEntity#moveToWorld
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRAVEL_THROUGH_PORTAL Lnet/minecraft/world/WorldEvents;TRAVEL_THROUGH_PORTAL:I
      intermediary field_31120 Lnet/minecraft/class_6088;field_31120:I
      official y Ldoz;y:I
    • CHORUS_FLOWER_GROWS

      public static final int CHORUS_FLOWER_GROWS
      A chorus flower grows.
      Plays the chorus flower growing sound event.

      Called by ChorusFlowerBlock#grow

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHORUS_FLOWER_GROWS Lnet/minecraft/world/WorldEvents;CHORUS_FLOWER_GROWS:I
      intermediary field_31121 Lnet/minecraft/class_6088;field_31121:I
      official z Ldoz;z:I
    • CHORUS_FLOWER_DIES

      public static final int CHORUS_FLOWER_DIES
      A chorus flower dies.
      Plays the chorus flower death sound event.

      Called by ChorusFlowerBlock#die

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHORUS_FLOWER_DIES Lnet/minecraft/world/WorldEvents;CHORUS_FLOWER_DIES:I
      intermediary field_31122 Lnet/minecraft/class_6088;field_31122:I
      official A Ldoz;A:I
    • BREWING_STAND_BREWS

      public static final int BREWING_STAND_BREWS
      A brewing stand brews.
      Plays the brewing stand brewing sound event.

      Called by BrewingStandBlockEntity#craft

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BREWING_STAND_BREWS Lnet/minecraft/world/WorldEvents;BREWING_STAND_BREWS:I
      intermediary field_31123 Lnet/minecraft/class_6088;field_31123:I
      official B Ldoz;B:I
    • END_PORTAL_OPENED

      public static final int END_PORTAL_OPENED
      An end portal is opened.
      Plays the end portal spawn sound event.

      This is a global event.

      Called by EnderEyeItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named END_PORTAL_OPENED Lnet/minecraft/world/WorldEvents;END_PORTAL_OPENED:I
      intermediary field_31126 Lnet/minecraft/class_6088;field_31126:I
      official C Ldoz;C:I
    • PHANTOM_BITES

      public static final int PHANTOM_BITES
      A phantom bites its victim.
      Plays the phantom bite sound event.

      Called by PhantomEntity.SwoopMovementGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PHANTOM_BITES Lnet/minecraft/world/WorldEvents;PHANTOM_BITES:I
      intermediary field_31127 Lnet/minecraft/class_6088;field_31127:I
      official D Ldoz;D:I
    • ZOMBIE_CONVERTS_TO_DROWNED

      public static final int ZOMBIE_CONVERTS_TO_DROWNED
      A zombie converts into a drowned.
      Plays the zombie convert to drowned sound event.

      Called by ZombieEntity#convertInWater

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ZOMBIE_CONVERTS_TO_DROWNED Lnet/minecraft/world/WorldEvents;ZOMBIE_CONVERTS_TO_DROWNED:I
      intermediary field_31128 Lnet/minecraft/class_6088;field_31128:I
      official E Ldoz;E:I
    • HUSK_CONVERTS_TO_ZOMBIE

      public static final int HUSK_CONVERTS_TO_ZOMBIE
      A husk converts into a zombie.
      Plays the husk convert to zombie sound event.

      Called by HuskEntity#convertInWater

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HUSK_CONVERTS_TO_ZOMBIE Lnet/minecraft/world/WorldEvents;HUSK_CONVERTS_TO_ZOMBIE:I
      intermediary field_31129 Lnet/minecraft/class_6088;field_31129:I
      official F Ldoz;F:I
    • GRINDSTONE_USED

      public static final int GRINDSTONE_USED
      A grindstone is used.
      Plays the grindstone used sound event.

      Called by GrindstoneScreenHandler

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GRINDSTONE_USED Lnet/minecraft/world/WorldEvents;GRINDSTONE_USED:I
      intermediary field_31130 Lnet/minecraft/class_6088;field_31130:I
      official G Ldoz;G:I
    • LECTERN_BOOK_PAGE_TURNED

      public static final int LECTERN_BOOK_PAGE_TURNED
      A page is turned in a book on a lectern.
      Plays the page turn sound event.

      Called by LecternBlock#setPowered

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LECTERN_BOOK_PAGE_TURNED Lnet/minecraft/world/WorldEvents;LECTERN_BOOK_PAGE_TURNED:I
      intermediary field_31131 Lnet/minecraft/class_6088;field_31131:I
      official H Ldoz;H:I
    • SMITHING_TABLE_USED

      public static final int SMITHING_TABLE_USED
      A smithing table is used.
      Plays the smithing table used sound event.

      Called by SmithingScreenHandler#onTakeOutput

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SMITHING_TABLE_USED Lnet/minecraft/world/WorldEvents;SMITHING_TABLE_USED:I
      intermediary field_31132 Lnet/minecraft/class_6088;field_31132:I
      official I Ldoz;I:I
    • POINTED_DRIPSTONE_LANDS

      public static final int POINTED_DRIPSTONE_LANDS
      A pointed dripstone lands after falling.
      Plays the pointed dripstone landing sound event.

      Called by PointedDripstoneBlock#onDestroyedOnLanding

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POINTED_DRIPSTONE_LANDS Lnet/minecraft/world/WorldEvents;POINTED_DRIPSTONE_LANDS:I
      intermediary field_31133 Lnet/minecraft/class_6088;field_31133:I
      official J Ldoz;J:I
    • POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON

      public static final int POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON
      A pointed dripstone drips lava into a cauldron.
      Plays the pointed dripstone dripping lava into cauldron sound event.

      Called by CauldronBlock#fillFromDripstone

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON Lnet/minecraft/world/WorldEvents;POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON:I
      intermediary field_31134 Lnet/minecraft/class_6088;field_31134:I
      official K Ldoz;K:I
    • POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON

      public static final int POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON
      A pointed dripstone drips water into a cauldron.
      Plays the pointed dripstone dripping water into cauldron sound event.

      Called by CauldronBlock#fillFromDripstone, and LeveledCauldronBlock#fillFromDripstone

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON Lnet/minecraft/world/WorldEvents;POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON:I
      intermediary field_31135 Lnet/minecraft/class_6088;field_31135:I
      official L Ldoz;L:I
    • SKELETON_CONVERTS_TO_STRAY

      public static final int SKELETON_CONVERTS_TO_STRAY
      A skeleton converts into a stray.
      Plays the skeleton convert to stray sound event.

      Called by SkeletonEntity#convertToStray

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SKELETON_CONVERTS_TO_STRAY Lnet/minecraft/world/WorldEvents;SKELETON_CONVERTS_TO_STRAY:I
      intermediary field_31136 Lnet/minecraft/class_6088;field_31136:I
      official M Ldoz;M:I
    • CRAFTER_CRAFTS

      public static final int CRAFTER_CRAFTS
      A crafter crafts an item.
      Plays the crafter craft sound event.

      Called by CrafterBlock#transferOrSpawnStack

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CRAFTER_CRAFTS Lnet/minecraft/world/WorldEvents;CRAFTER_CRAFTS:I
      intermediary field_46805 Lnet/minecraft/class_6088;field_46805:I
      official N Ldoz;N:I
    • CRAFTER_FAILS

      public static final int CRAFTER_FAILS
      A crafter fails to craft.
      Plays the crafter fail sound event.

      Called by CrafterBlock#craft

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CRAFTER_FAILS Lnet/minecraft/world/WorldEvents;CRAFTER_FAILS:I
      intermediary field_46806 Lnet/minecraft/class_6088;field_46806:I
      official O Ldoz;O:I
    • field_51787

      public static final int field_51787
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_51787 Lnet/minecraft/world/WorldEvents;field_51787:I
      intermediary field_51787 Lnet/minecraft/class_6088;field_51787:I
      official P Ldoz;P:I
    • COMPOSTER_USED

      public static final int COMPOSTER_USED
      An item is composted in a composter.
      Plays the appropriate composting sound event and spawns composter particles.

      A 1 should be passed as extra data if the use of the composter added to the level of compost inside.

      Called by ComposterBlock#onUse, ComposterBlock.ComposterInventory#markDirty, and FarmerWorkTask#syncComposterEvent

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COMPOSTER_USED Lnet/minecraft/world/WorldEvents;COMPOSTER_USED:I
      intermediary field_31137 Lnet/minecraft/class_6088;field_31137:I
      official Q Ldoz;Q:I
    • LAVA_EXTINGUISHED

      public static final int LAVA_EXTINGUISHED
      Lava is extinguished.
      Plays the lava extinguish sound event and spawns large smoke particles.

      Called by FluidBlock#playExtinguishSound, and LavaFluid#playExtinguishEvent

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LAVA_EXTINGUISHED Lnet/minecraft/world/WorldEvents;LAVA_EXTINGUISHED:I
      intermediary field_31138 Lnet/minecraft/class_6088;field_31138:I
      official R Ldoz;R:I
    • REDSTONE_TORCH_BURNS_OUT

      public static final int REDSTONE_TORCH_BURNS_OUT
      A redstone torch burns out.
      Plays the redstone torch burn out sound event and spawns smoke particles.

      Called by RedstoneTorchBlock#scheduledTick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REDSTONE_TORCH_BURNS_OUT Lnet/minecraft/world/WorldEvents;REDSTONE_TORCH_BURNS_OUT:I
      intermediary field_31139 Lnet/minecraft/class_6088;field_31139:I
      official S Ldoz;S:I
    • END_PORTAL_FRAME_FILLED

      public static final int END_PORTAL_FRAME_FILLED
      An end portal frame is filled with an eye of ender.
      Plays the end portal frame filled sound event and spawns smoke particles.

      Called by EnderEyeItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named END_PORTAL_FRAME_FILLED Lnet/minecraft/world/WorldEvents;END_PORTAL_FRAME_FILLED:I
      intermediary field_31141 Lnet/minecraft/class_6088;field_31141:I
      official T Ldoz;T:I
    • POINTED_DRIPSTONE_DRIPS

      public static final int POINTED_DRIPSTONE_DRIPS
      A pointed dripstone drips fluid particles.
      Spawns dripping fluid particles.

      Called by PointedDripstoneBlock#dripTick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POINTED_DRIPSTONE_DRIPS Lnet/minecraft/world/WorldEvents;POINTED_DRIPSTONE_DRIPS:I
      intermediary field_31142 Lnet/minecraft/class_6088;field_31142:I
      official U Ldoz;U:I
    • BONE_MEAL_USED

      public static final int BONE_MEAL_USED
      Bone meal is used.
      Plays the bone meal item used sound event and spawns happy villager particles.

      The amount of particles to spawn must be supplied as extra data.

      Called by BoneMealItem#useOnBlock, an anonymous class in DispenserBehavior#registerDefaults, and BoneMealTask#keepRunning

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BONE_MEAL_USED Lnet/minecraft/world/WorldEvents;BONE_MEAL_USED:I
      intermediary field_33511 Lnet/minecraft/class_6088;field_33511:I
      official V Ldoz;V:I
    • DISPENSER_ACTIVATED

      public static final int DISPENSER_ACTIVATED
      A dispenser is activated.
      Shoots smoke particles.

      The ordinal direction the dispenser is facing must be supplied as extra data.

      Called by ItemDispenserBehavior#spawnParticles

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DISPENSER_ACTIVATED Lnet/minecraft/world/WorldEvents;DISPENSER_ACTIVATED:I
      intermediary field_31143 Lnet/minecraft/class_6088;field_31143:I
      official W Ldoz;W:I
    • BLOCK_BROKEN

      public static final int BLOCK_BROKEN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_BROKEN Lnet/minecraft/world/WorldEvents;BLOCK_BROKEN:I
      intermediary field_31144 Lnet/minecraft/class_6088;field_31144:I
      official X Ldoz;X:I
    • SPLASH_POTION_SPLASHED

      public static final int SPLASH_POTION_SPLASHED
      A non-instant splash potion is splashed.
      Plays the splash potion breaking sound event and spawns splash potion particles.

      The hex color of the potion must be supplied as extra data.

      For instant effects such as Instant Health and Instant Damage, use INSTANT_SPLASH_POTION_SPLASHED.

      Called by ExperienceBottleEntity#onCollision, and PotionEntity#onCollision

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SPLASH_POTION_SPLASHED Lnet/minecraft/world/WorldEvents;SPLASH_POTION_SPLASHED:I
      intermediary field_31145 Lnet/minecraft/class_6088;field_31145:I
      official Y Ldoz;Y:I
    • EYE_OF_ENDER_BREAKS

      public static final int EYE_OF_ENDER_BREAKS
      A thrown eye of ender breaks.
      Spawns several particles.

      Called by EyeOfEnderEntity#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EYE_OF_ENDER_BREAKS Lnet/minecraft/world/WorldEvents;EYE_OF_ENDER_BREAKS:I
      intermediary field_31146 Lnet/minecraft/class_6088;field_31146:I
      official Z Ldoz;Z:I
    • SPAWNER_SPAWNS_MOB

      public static final int SPAWNER_SPAWNS_MOB
      A spawner spawns a mob.
      Spawns smoke and flame particles.

      Called by MobSpawnerLogic#serverTick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SPAWNER_SPAWNS_MOB Lnet/minecraft/world/WorldEvents;SPAWNER_SPAWNS_MOB:I
      intermediary field_31147 Lnet/minecraft/class_6088;field_31147:I
      official aa Ldoz;aa:I
    • DRAGON_BREATH_CLOUD_SPAWNS

      public static final int DRAGON_BREATH_CLOUD_SPAWNS
      A dragon breath cloud spawns.
      Plays the dragon fireball explode sound event and spawns dragon breath particles.

      Called by DragonFireballEntity#onCollision

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DRAGON_BREATH_CLOUD_SPAWNS Lnet/minecraft/world/WorldEvents;DRAGON_BREATH_CLOUD_SPAWNS:I
      intermediary field_31149 Lnet/minecraft/class_6088;field_31149:I
      official ab Ldoz;ab:I
    • INSTANT_SPLASH_POTION_SPLASHED

      public static final int INSTANT_SPLASH_POTION_SPLASHED
      An instant splash potion is splashed.
      Plays the splash potion breaking sound event and spawns instant splash potion particles.

      The hex color of the potion must be supplied as extra data.

      For non-instant effects, use SPLASH_POTION_SPLASHED.

      Called by PotionEntity#onCollision

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INSTANT_SPLASH_POTION_SPLASHED Lnet/minecraft/world/WorldEvents;INSTANT_SPLASH_POTION_SPLASHED:I
      intermediary field_31150 Lnet/minecraft/class_6088;field_31150:I
      official ac Ldoz;ac:I
    • ENDER_DRAGON_BREAKS_BLOCK

      public static final int ENDER_DRAGON_BREAKS_BLOCK
      An ender dragon breaks a block.
      Spawns an explosion particle.

      Called by

      invalid reference
      EnderDragonEntity#destroyBlocks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENDER_DRAGON_BREAKS_BLOCK Lnet/minecraft/world/WorldEvents;ENDER_DRAGON_BREAKS_BLOCK:I
      intermediary field_31151 Lnet/minecraft/class_6088;field_31151:I
      official ad Ldoz;ad:I
    • WET_SPONGE_DRIES_OUT

      public static final int WET_SPONGE_DRIES_OUT
      A wet sponge dries out in an ultrawarm dimension.
      Spawns cloud particles.

      Called by WetSpongeBlock#onBlockAdded

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WET_SPONGE_DRIES_OUT Lnet/minecraft/world/WorldEvents;WET_SPONGE_DRIES_OUT:I
      intermediary field_31152 Lnet/minecraft/class_6088;field_31152:I
      official ae Ldoz;ae:I
    • CRAFTER_SHOOTS

      public static final int CRAFTER_SHOOTS
      A crafter shoots out an item.
      Shoots white smoke particles.

      The ordinal direction the crafter is facing must be supplied as extra data.

      Called by

      invalid reference
      CrafterBlock#transferOrSpawnStack
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CRAFTER_SHOOTS Lnet/minecraft/world/WorldEvents;CRAFTER_SHOOTS:I
      intermediary field_46807 Lnet/minecraft/class_6088;field_46807:I
      official af Ldoz;af:I
    • BEE_FERTILIZES_PLANT

      public static final int BEE_FERTILIZES_PLANT
      A plant is fertilized by a bee.
      Spawns happy villager particles.

      The amount of particles to spawn must be supplied as extra data.

      Called by BeeEntity.GrowCropsGoal#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BEE_FERTILIZES_PLANT Lnet/minecraft/world/WorldEvents;BEE_FERTILIZES_PLANT:I
      intermediary field_47837 Lnet/minecraft/class_6088;field_47837:I
      official ag Ldoz;ag:I
    • TURTLE_EGG_PLACED

      public static final int TURTLE_EGG_PLACED
      A turtle egg is placed on sand.
      Spawns happy villager particles.

      The amount of particles to spawn must be supplied as extra data.

      Called by TurtleEggBlock#onBlockAdded

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TURTLE_EGG_PLACED Lnet/minecraft/world/WorldEvents;TURTLE_EGG_PLACED:I
      intermediary field_47838 Lnet/minecraft/class_6088;field_47838:I
      official ah Ldoz;ah:I
    • SMASH_ATTACK

      public static final int SMASH_ATTACK
      A mace is used to execute a smash attack.
      Spawns dust pillar particles.

      The amount of particles to spawn must be supplied as extra data.

      Called by MaceItem.knockbackNearbyEntities(net.minecraft.world.World, net.minecraft.entity.Entity, net.minecraft.entity.Entity)

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SMASH_ATTACK Lnet/minecraft/world/WorldEvents;SMASH_ATTACK:I
      intermediary field_50168 Lnet/minecraft/class_6088;field_50168:I
      official ai Ldoz;ai:I
    • END_GATEWAY_SPAWNS

      public static final int END_GATEWAY_SPAWNS
      An end gateway spawns.
      Plays the end gateway spawn sound event and spawns an explosion emitter particle.

      Called by EnderDragonFight#generateEndGateway

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named END_GATEWAY_SPAWNS Lnet/minecraft/world/WorldEvents;END_GATEWAY_SPAWNS:I
      intermediary field_31153 Lnet/minecraft/class_6088;field_31153:I
      official aj Ldoz;aj:I
    • ENDER_DRAGON_RESURRECTED

      public static final int ENDER_DRAGON_RESURRECTED
      The ender dragon is being resurrected.
      Plays the ender dragon growl sound event.

      Called by EnderDragonSpawnState#run

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENDER_DRAGON_RESURRECTED Lnet/minecraft/world/WorldEvents;ENDER_DRAGON_RESURRECTED:I
      intermediary field_31154 Lnet/minecraft/class_6088;field_31154:I
      official ak Ldoz;ak:I
    • ELECTRICITY_SPARKS

      public static final int ELECTRICITY_SPARKS
      Electricity sparks after lightning hits a lightning rod or oxidizable blocks.
      Spawns electric spark particles.

      The ordinal direction the lightning rod is facing must be supplied as extra data.
      A -1 should be passed if the event is called by a lightning entity itself.

      Called by LightningRodBlock#setPowered, and LightningEntity#cleanOxidationAround

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ELECTRICITY_SPARKS Lnet/minecraft/world/WorldEvents;ELECTRICITY_SPARKS:I
      intermediary field_31155 Lnet/minecraft/class_6088;field_31155:I
      official al Ldoz;al:I
    • BLOCK_WAXED

      public static final int BLOCK_WAXED
      A block is waxed.
      Plays the block waxing sound event and spawns waxing particles.

      Called by HoneycombItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_WAXED Lnet/minecraft/world/WorldEvents;BLOCK_WAXED:I
      intermediary field_31156 Lnet/minecraft/class_6088;field_31156:I
      official am Ldoz;am:I
    • WAX_REMOVED

      public static final int WAX_REMOVED
      Wax is removed from a block.
      Spawns wax removal particles.

      Called by AxeItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WAX_REMOVED Lnet/minecraft/world/WorldEvents;WAX_REMOVED:I
      intermediary field_31157 Lnet/minecraft/class_6088;field_31157:I
      official an Ldoz;an:I
    • BLOCK_SCRAPED

      public static final int BLOCK_SCRAPED
      A block is scraped.
      Spawns scraping particles.

      Called by AxeItem#useOnBlock

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_SCRAPED Lnet/minecraft/world/WorldEvents;BLOCK_SCRAPED:I
      intermediary field_31158 Lnet/minecraft/class_6088;field_31158:I
      official ao Ldoz;ao:I
    • SCULK_CHARGE

      public static final int SCULK_CHARGE
      Sculk releases a charge.
      Spawns sculk charge particles.

      Called by SculkSpreadManager#tick

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SCULK_CHARGE Lnet/minecraft/world/WorldEvents;SCULK_CHARGE:I
      intermediary field_37586 Lnet/minecraft/class_6088;field_37586:I
      official ap Ldoz;ap:I
    • SCULK_SHRIEKS

      public static final int SCULK_SHRIEKS
      A sculk shrieker shrieks.
      Spawns shriek particles and plays the shriek sound event.

      Called by SculkShriekerBlockEntity#shriek

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SCULK_SHRIEKS Lnet/minecraft/world/WorldEvents;SCULK_SHRIEKS:I
      intermediary field_38228 Lnet/minecraft/class_6088;field_38228:I
      official aq Ldoz;aq:I
    • BLOCK_FINISHED_BRUSHING

      public static final int BLOCK_FINISHED_BRUSHING
      A block has been completely brushed.
      Spawns block break particles and plays the block's brushing complete sound.

      The block's raw ID must be supplied as extra data.

      Called by

      invalid reference
      BrushableBlockEntity#finishBrushing
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_FINISHED_BRUSHING Lnet/minecraft/world/WorldEvents;BLOCK_FINISHED_BRUSHING:I
      intermediary field_42759 Lnet/minecraft/class_6088;field_42759:I
      official ar Ldoz;ar:I
    • SNIFFER_EGG_CRACKS

      public static final int SNIFFER_EGG_CRACKS
      A sniffer egg cracks.
      Spawns between 1 and 3 egg crack particles.

      If a 1 is passed as extra data, between 3 and 6 egg crack particles are spawned instead.

      Called by SnifferEggBlock#onBlockAdded

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SNIFFER_EGG_CRACKS Lnet/minecraft/world/WorldEvents;SNIFFER_EGG_CRACKS:I
      intermediary field_43238 Lnet/minecraft/class_6088;field_43238:I
      official as Ldoz;as:I
    • TRIAL_SPAWNER_SPAWNS_MOB

      public static final int TRIAL_SPAWNER_SPAWNS_MOB
      A trial spawner spawns a mob. Triggered at the position of the spawner.
      Spawns mob spawn particles.

      Called by TrialSpawnerLogic.trySpawnMob(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER_SPAWNS_MOB Lnet/minecraft/world/WorldEvents;TRIAL_SPAWNER_SPAWNS_MOB:I
      intermediary field_47340 Lnet/minecraft/class_6088;field_47340:I
      official at Ldoz;at:I
    • TRIAL_SPAWNER_SPAWNS_MOB_AT_SPAWN_POS

      public static final int TRIAL_SPAWNER_SPAWNS_MOB_AT_SPAWN_POS
      A trial spawner spawns a mob. Triggered at the position of the spawned mob.
      Plays the spawn sound and spawns mob spawn particles.

      Called by TrialSpawnerLogic.trySpawnMob(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER_SPAWNS_MOB_AT_SPAWN_POS Lnet/minecraft/world/WorldEvents;TRIAL_SPAWNER_SPAWNS_MOB_AT_SPAWN_POS:I
      intermediary field_47341 Lnet/minecraft/class_6088;field_47341:I
      official au Ldoz;au:I
    • TRIAL_SPAWNER_DETECTS_PLAYER

      public static final int TRIAL_SPAWNER_DETECTS_PLAYER
      A trial spawner detects survival-mode players.
      Plays the detection sound and spawns detection particles.

      The extra data denotes the number of players.

      Called by TrialSpawnerData.updatePlayers(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.block.spawner.TrialSpawnerLogic).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER_DETECTS_PLAYER Lnet/minecraft/world/WorldEvents;TRIAL_SPAWNER_DETECTS_PLAYER:I
      intermediary field_47342 Lnet/minecraft/class_6088;field_47342:I
      official av Ldoz;av:I
    • TRIAL_SPAWNER_EJECTS_ITEM

      public static final int TRIAL_SPAWNER_EJECTS_ITEM
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER_EJECTS_ITEM Lnet/minecraft/world/WorldEvents;TRIAL_SPAWNER_EJECTS_ITEM:I
      intermediary field_47343 Lnet/minecraft/class_6088;field_47343:I
      official aw Ldoz;aw:I
    • VAULT_ACTIVATES

      public static final int VAULT_ACTIVATES
      A vault is activated.
      Plays the activate sound and spawns smoke and small flame particles.

      Called by VaultState.ACTIVE.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named VAULT_ACTIVATES Lnet/minecraft/world/WorldEvents;VAULT_ACTIVATES:I
      intermediary field_48852 Lnet/minecraft/class_6088;field_48852:I
      official ax Ldoz;ax:I
    • VAULT_DEACTIVATES

      public static final int VAULT_DEACTIVATES
      A vault is deactivated.
      Plays the deactivate sound and spawns small flame particles.

      Called by VaultState.INACTIVE.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named VAULT_DEACTIVATES Lnet/minecraft/world/WorldEvents;VAULT_DEACTIVATES:I
      intermediary field_48853 Lnet/minecraft/class_6088;field_48853:I
      official ay Ldoz;ay:I
    • VAULT_EJECTS_ITEM

      public static final int VAULT_EJECTS_ITEM
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named VAULT_EJECTS_ITEM Lnet/minecraft/world/WorldEvents;VAULT_EJECTS_ITEM:I
      intermediary field_48854 Lnet/minecraft/class_6088;field_48854:I
      official az Ldoz;az:I
    • COBWEB_WEAVED

      public static final int COBWEB_WEAVED
      A cobweb is placed by the weaving effect.
      Spawns poof particles and plays the cobweb place sound.

      Called by WeavingStatusEffect.tryPlaceCobweb(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.random.Random, net.minecraft.util.math.BlockPos).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COBWEB_WEAVED Lnet/minecraft/world/WorldEvents;COBWEB_WEAVED:I
      intermediary field_50164 Lnet/minecraft/class_6088;field_50164:I
      official aA Ldoz;aA:I
    • OMINOUS_TRIAL_SPAWNER_DETECTS_PLAYER

      public static final int OMINOUS_TRIAL_SPAWNER_DETECTS_PLAYER
      An ominous trial spawner detects survival-mode players.
      Plays the detection sound and spawns detection particles.

      The extra data denotes the number of players.

      Called by TrialSpawnerData.updatePlayers(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.block.spawner.TrialSpawnerLogic).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OMINOUS_TRIAL_SPAWNER_DETECTS_PLAYER Lnet/minecraft/world/WorldEvents;OMINOUS_TRIAL_SPAWNER_DETECTS_PLAYER:I
      intermediary field_50165 Lnet/minecraft/class_6088;field_50165:I
      official aB Ldoz;aB:I
    • TRIAL_SPAWNER_TURNS_OMINOUS

      public static final int TRIAL_SPAWNER_TURNS_OMINOUS
      A trial spawner becomes ominous.
      Plays the activate sound and spawns both detection and omen particles.

      If a 0 is passed as extra data, the activate sound will be played at 0.3 volume.
      Otherwise, it is played at full volume.

      Called by TrialSpawnerLogic.setOminous(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos), and TrialSpawnerData.updatePlayers(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.block.spawner.TrialSpawnerLogic).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER_TURNS_OMINOUS Lnet/minecraft/world/WorldEvents;TRIAL_SPAWNER_TURNS_OMINOUS:I
      intermediary field_50166 Lnet/minecraft/class_6088;field_50166:I
      official aC Ldoz;aC:I
    • OMINOUS_ITEM_SPAWNER_SPAWNS_ITEM

      public static final int OMINOUS_ITEM_SPAWNER_SPAWNS_ITEM
      An ominous item spawner spawns an item.
      Plays the item spawn sound and spawns mob spawn particles.

      Called by OminousItemSpawnerEntity.spawnItem()

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OMINOUS_ITEM_SPAWNER_SPAWNS_ITEM Lnet/minecraft/world/WorldEvents;OMINOUS_ITEM_SPAWNER_SPAWNS_ITEM:I
      intermediary field_50167 Lnet/minecraft/class_6088;field_50167:I
      official aD Ldoz;aD:I
  • Constructor Details

    • WorldEvents

      public WorldEvents()