Class WorldEvents
public final class WorldEvents extends Object
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 WorldRenderer#processWorldEvent and
WorldRenderer#processGlobalEvent (for regular and global events respectively).
-
Field Summary
Fields Modifier and Type Field Description static intANVIL_DESTROYEDAn Anvil is destroyed from damage.static intANVIL_LANDSAn Anvil lands after falling.static intANVIL_USEDAn Anvil is used.static intBAT_TAKES_OFFA Bat takes off.static intBLAZE_SHOOTSA Blaze shoots a fireball or a Fire Charge is shot by a dispenser.static intBLOCK_BROKENA block is broken.static intBLOCK_SCRAPEDA block is scraped.static intBLOCK_WAXEDA block is waxed.static intBREWING_STAND_BREWSA Brewing Stand brews.static intCHORUS_FLOWER_DIESA Chorus Flower dies.static intCHORUS_FLOWER_GROWSA Chorus Flower grows.static intCOMPOSTER_USEDAn item is composted in a Composter.static intDISPENSER_ACTIVATEDA Dispenser is activated.static intDISPENSER_DISPENSESA Dispenser dispenses an item.static intDISPENSER_FAILSA Dispenser fails to dispense an item.static intDISPENSER_LAUNCHES_PROJECTILEA Dispenser launches a projectile.static intDRAGON_BREATH_CLOUD_SPAWNSA Dragon Breath Cloud spawns.static intELECTRICITY_SPARKSElectricity sparks after Lightning hits a Lightning Rod or Oxidizable blocks.static intEND_GATEWAY_SPAWNSAn End Gateway spawns.static intEND_PORTAL_FRAME_FILLEDAn End Portal Frame is filled with an Eye of Ender.static intEND_PORTAL_OPENEDAn End Portal is opened.static intENDER_DRAGON_BREAKS_BLOCKAn Ender Dragon breaks a block.static intENDER_DRAGON_DIESAn Ender Dragon dies.static intENDER_DRAGON_RESURRECTEDThe Ender Dragon is being resurrected.static intENDER_DRAGON_SHOOTSAn Ender Dragon shoots a fireball.static intEYE_OF_ENDER_BREAKSA thrown Eye of Ender breaks.static intEYE_OF_ENDER_LAUNCHESAn Eye of Ender is launched.static intFENCE_GATE_CLOSESA Fence Gate is closed.static intFENCE_GATE_OPENSA Fence Gate is opened.static intFIRE_EXTINGUISHEDA fire block or campfire is extinguished.static intFIREWORK_ROCKET_SHOOTSA Firework Rocket is shot.static intGHAST_SHOOTSA Ghast shoots a fireball.static intGHAST_WARNSA Ghast warns its victim.static intGRINDSTONE_USEDA Grindstone is used.static intHUSK_CONVERTS_TO_ZOMBIEA Husk converts into a Zombie.static intINSTANT_SPLASH_POTION_SPLASHEDAn instant Splash Potion is splashed.static intIRON_DOOR_CLOSESAn Iron Door is closed.static intIRON_DOOR_OPENSAn Iron Door is opened.static intIRON_TRAPDOOR_CLOSESAn Iron Trapdoor closes.static intIRON_TRAPDOOR_OPENSAn Iron Trapdoor opens.static intLAVA_EXTINGUISHEDLava is extinguished.static intLECTERN_BOOK_PAGE_TURNEDA page is turned in a Book on a Lectern.static intMUSIC_DISC_PLAYEDA Music Disc is played.static intPHANTOM_BITESA Phantom bites its victim.static intPLANT_FERTILIZEDA plant is fertilized with Bone Meal or by a Bee, or a Turtle Egg is placed
Spawns happy villager particles.static intPOINTED_DRIPSTONE_DRIPSPointed Dripstone drips fluid particles.static intPOINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRONPointed Dripstone drips Lava into a Cauldron.static intPOINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRONPointed Dripstone drips Water into a Cauldron.static intPOINTED_DRIPSTONE_LANDSPointed Dripstone lands after falling.static intREDSTONE_TORCH_BURNS_OUTA Redstone Torch burns out.static intSKELETON_CONVERTS_TO_STRAYA Skeleton converts into a Stray.static intSMITHING_TABLE_USEDA Smithing Table is used.static intSPAWNER_SPAWNSA Spawner spawns mobs.static intSPLASH_POTION_SPLASHEDA non-instant Splash Potion is splashed.static intTRAVEL_THROUGH_PORTALA Portal is travelled through.static intWAX_REMOVEDWax is removed from a block.static intWET_SPONGE_DRIES_OUTA Wet Sponge dries out in a hot dimension.static intWITHER_BREAKS_BLOCKA Wither breaks a block.static intWITHER_SHOOTSA Wither shoots a wither skull.static intWITHER_SPAWNSA Wither is spawned.static intWOODEN_DOOR_CLOSESA Wooden Door is closed.static intWOODEN_DOOR_OPENSA Wooden Door is opened.static intWOODEN_TRAPDOOR_CLOSESA Wooden Trapdoor is closed.static intWOODEN_TRAPDOOR_OPENSA Wooden Trapdoor is opened.static intZOMBIE_ATTACKS_IRON_DOORA Zombie attacks an Iron Door.static intZOMBIE_ATTACKS_WOODEN_DOORA Zombie attacks a Wooden Door.static intZOMBIE_BREAKS_WOODEN_DOORA Zombie breaks a Wooden Door.static intZOMBIE_CONVERTS_TO_DROWNEDA Zombie converts into a Drowned.static intZOMBIE_INFECTS_VILLAGERA Zombie infects a Villager.static intZOMBIE_VILLAGER_CUREDA Zombie Villager is cured. -
Constructor Summary
Constructors Modifier Constructor Description privateWorldEvents() -
Method Summary
-
Field Details
-
DISPENSER_DISPENSES
public static final int DISPENSER_DISPENSESA Dispenser dispenses an item.
Plays the dispensing sound event.Called by
BoatDispenserBehavior#playSound,FallibleItemDispenserBehavior#playSound,ItemDispenserBehavior#playSound, andMinecartItem#DISPENSER_BEHAVIOR- See Also:
- Constant Field Values
-
DISPENSER_FAILS
public static final int DISPENSER_FAILSA Dispenser fails to dispense an item.
Plays the dispenser fail sound event.Called by
DispenserBlock#dispense,DropperBlock#dispense, andFallibleItemDispenserBehavior#playSound- See Also:
- Constant Field Values
-
DISPENSER_LAUNCHES_PROJECTILE
public static final int DISPENSER_LAUNCHES_PROJECTILEA Dispenser launches a projectile.
Plays the dispenser launch sound event.Called by
ProjectileDispenserBehavior#playSound- See Also:
- Constant Field Values
-
EYE_OF_ENDER_LAUNCHES
public static final int EYE_OF_ENDER_LAUNCHESAn Eye of Ender is launched.
Plays the eye of ender launching sound event.Called by
EnderEyeItem#use- See Also:
- Constant Field Values
-
FIREWORK_ROCKET_SHOOTS
public static final int FIREWORK_ROCKET_SHOOTSA Firework Rocket is shot.
Plays the firework shoot sound event.Called by
DispenserBehavior- See Also:
- Constant Field Values
-
IRON_DOOR_OPENS
public static final int IRON_DOOR_OPENSAn Iron Door is opened.
Plays the iron door opening sound event.Called by
DoorBlock#playOpenCloseSound- See Also:
- Constant Field Values
-
WOODEN_DOOR_OPENS
public static final int WOODEN_DOOR_OPENSA Wooden Door is opened.
Plays the wooden door opening sound event.Called by
DoorBlock#onUse, andDoorBlock#playOpenCloseSound- See Also:
- Constant Field Values
-
WOODEN_TRAPDOOR_OPENS
public static final int WOODEN_TRAPDOOR_OPENSA Wooden Trapdoor is opened.
Plays the wooden trapdoor opening sound event.Called by
TrapdoorBlock#playToggleSound- See Also:
- Constant Field Values
-
FENCE_GATE_OPENS
public static final int FENCE_GATE_OPENSA Fence Gate is opened.
Plays the fence gate opening sound event.Called by
FenceGateBlock#onUse, andFenceGateBlock#neighborUpdate- See Also:
- Constant Field Values
-
FIRE_EXTINGUISHED
public static final int FIRE_EXTINGUISHEDA fire block or campfire is extinguished.
Plays the fire extinguish sound event.Called by
AbstractFireBlock#onBreak,PotionEntity#extinguishFire, andShovelItem#useOnBlock- See Also:
- Constant Field Values
-
MUSIC_DISC_PLAYED
public static final int MUSIC_DISC_PLAYEDA Music Disc is played.
Plays the appropriate music.
The Raw ID of the Music Disc item must be supplied as extra data.
A0should be passed to stop music.Called by
MusicDiscItem#useOnBlock, andJukeboxBlock#removeRecord- See Also:
- Constant Field Values
-
IRON_DOOR_CLOSES
public static final int IRON_DOOR_CLOSESAn Iron Door is closed.
Plays the iron door closing sound event.Called by
DoorBlock#playOpenCloseSound- See Also:
- Constant Field Values
-
WOODEN_DOOR_CLOSES
public static final int WOODEN_DOOR_CLOSESA Wooden Door is closed.
Plays the wooden door closing sound event.Called by
DoorBlock#onUse, andDoorBlock#playOpenCloseSound- See Also:
- Constant Field Values
-
WOODEN_TRAPDOOR_CLOSES
public static final int WOODEN_TRAPDOOR_CLOSESA Wooden Trapdoor is closed.
Plays the wooden trapdoor closing sound event.Called by
TrapdoorBlock#playToggleSound- See Also:
- Constant Field Values
-
FENCE_GATE_CLOSES
public static final int FENCE_GATE_CLOSESA Fence Gate is closed.
Plays the fence gate closing sound event.Called by
FenceGateBlock#onUse, andFenceGateBlock#neighborUpdate- See Also:
- Constant Field Values
-
GHAST_WARNS
public static final int GHAST_WARNSA Ghast warns its victim.
Plays the ghast warn sound event.Called by
GhastEntity.ShootFireballGoal#tick- See Also:
- Constant Field Values
-
GHAST_SHOOTS
public static final int GHAST_SHOOTSA Ghast shoots a fireball.
Plays the ghast shoot sound event.Called by
GhastEntity.ShootFireballGoal#tick- See Also:
- Constant Field Values
-
ENDER_DRAGON_SHOOTS
public static final int ENDER_DRAGON_SHOOTSAn Ender Dragon shoots a fireball.
Plays the ender dragon shoot sound event.Called by
StrafePlayerPhase#serverTick- See Also:
- Constant Field Values
-
BLAZE_SHOOTS
public static final int BLAZE_SHOOTSA Blaze shoots a fireball or a Fire Charge is shot by a dispenser.
Plays the blaze shoot sound event.Called by
BlazeEntity.ShootFireballGoal#tick, andDispenserBehavior- See Also:
- Constant Field Values
-
ZOMBIE_ATTACKS_WOODEN_DOOR
public static final int ZOMBIE_ATTACKS_WOODEN_DOORA Zombie attacks a Wooden Door.
Plays the zombie attacking wooden door sound event.Called by
BreakDoorGoal#tick- See Also:
- Constant Field Values
-
ZOMBIE_ATTACKS_IRON_DOOR
public static final int ZOMBIE_ATTACKS_IRON_DOORA Zombie attacks an Iron Door.
Plays the zombie attacking iron door sound event.
Goes unused.- See Also:
- Constant Field Values
-
ZOMBIE_BREAKS_WOODEN_DOOR
public static final int ZOMBIE_BREAKS_WOODEN_DOORA Zombie breaks a Wooden Door.
Plays the zombie breaking wooden door sound event.Called by
BreakDoorGoal#tick- See Also:
- Constant Field Values
-
WITHER_BREAKS_BLOCK
public static final int WITHER_BREAKS_BLOCKA Wither breaks a block.
Plays the wither breaking block sound event.Called by
WitherEntity#mobTick- See Also:
- Constant Field Values
-
WITHER_SPAWNS
public static final int WITHER_SPAWNSA Wither is spawned.
Plays the wither spawn sound event.
This is a global event.Called by
WitherEntity#mobTick- See Also:
- Constant Field Values
-
WITHER_SHOOTS
public static final int WITHER_SHOOTSA Wither shoots a wither skull.
Plays the wither shoot sound event.Called by
WitherEntity#shootSkullAt- See Also:
- Constant Field Values
-
BAT_TAKES_OFF
public static final int BAT_TAKES_OFFA Bat takes off.
Plays the bat take off sound event.Called by
BatEntity#mobTick- See Also:
- Constant Field Values
-
ZOMBIE_INFECTS_VILLAGER
public static final int ZOMBIE_INFECTS_VILLAGERA Zombie infects a Villager.
Plays the zombie infect villager sound event.Called by
ZombieEntity#onKilledOther- See Also:
- Constant Field Values
-
ZOMBIE_VILLAGER_CURED
public static final int ZOMBIE_VILLAGER_CUREDA Zombie Villager is cured.
Plays the zombie villager cured sound event.Called by
ZombieVillagerEntity#finishConversion- See Also:
- Constant Field Values
-
ENDER_DRAGON_DIES
public static final int ENDER_DRAGON_DIESAn Ender Dragon dies.
Plays the ender dragon death sound event.
This is a global event.Called by
EnderDragonEntity#updatePostDeath- See Also:
- Constant Field Values
-
ANVIL_DESTROYED
public static final int ANVIL_DESTROYEDAn Anvil is destroyed from damage.
Plays the anvil destroyed sound event.Called by
AnvilBlock#onDestroyedOnLanding, andAnvilScreenHandler#onTakeOutput- See Also:
- Constant Field Values
-
ANVIL_USED
public static final int ANVIL_USEDAn Anvil is used.
Plays the anvil used sound event.Called by
AnvilScreenHandler#onTakeOutput- See Also:
- Constant Field Values
-
ANVIL_LANDS
public static final int ANVIL_LANDSAn Anvil lands after falling.
Plays the anvil landing sound event.Called by
AnvilBlock#onLanding- See Also:
- Constant Field Values
-
TRAVEL_THROUGH_PORTAL
public static final int TRAVEL_THROUGH_PORTALA Portal is travelled through.
Plays the portal travel sound event directly through the client's sound manager.Called by
ServerPlayerEntity#moveToWorld- See Also:
- Constant Field Values
-
CHORUS_FLOWER_GROWS
public static final int CHORUS_FLOWER_GROWSA Chorus Flower grows.
Plays the chorus flower growing sound event.Called by
ChorusFlowerBlock#grow- See Also:
- Constant Field Values
-
CHORUS_FLOWER_DIES
public static final int CHORUS_FLOWER_DIESA Chorus Flower dies.
Plays the chorus flower death sound event.Called by
ChorusFlowerBlock#die- See Also:
- Constant Field Values
-
BREWING_STAND_BREWS
public static final int BREWING_STAND_BREWSA Brewing Stand brews.
Plays the brewing stand brewing sound event.Called by
BrewingStandBlockEntity#craft- See Also:
- Constant Field Values
-
IRON_TRAPDOOR_CLOSES
public static final int IRON_TRAPDOOR_CLOSESAn Iron Trapdoor closes.
Plays the iron trapdoor closing sound event.Called by
TrapdoorBlock#playToggleSound- See Also:
- Constant Field Values
-
IRON_TRAPDOOR_OPENS
public static final int IRON_TRAPDOOR_OPENSAn Iron Trapdoor opens.
Plays the iron trapdoor opening sound event.Called by
TrapdoorBlock#playToggleSound- See Also:
- Constant Field Values
-
END_PORTAL_OPENED
public static final int END_PORTAL_OPENEDAn End Portal is opened.
Plays the end portal spawn sound event.
This is a global event.Called by
EnderEyeItem#useOnBlock- See Also:
- Constant Field Values
-
PHANTOM_BITES
public static final int PHANTOM_BITESA Phantom bites its victim.
Plays the phantom bite sound event.Called by
PhantomEntity.SwoopMovementGoal#tick- See Also:
- Constant Field Values
-
ZOMBIE_CONVERTS_TO_DROWNED
public static final int ZOMBIE_CONVERTS_TO_DROWNEDA Zombie converts into a Drowned.
Plays the zombie convert to drowned sound event.Called by
ZombieEntity#convertInWater- See Also:
- Constant Field Values
-
HUSK_CONVERTS_TO_ZOMBIE
public static final int HUSK_CONVERTS_TO_ZOMBIEA Husk converts into a Zombie.
Plays the husk convert to zombie sound event.Called by
HuskEntity#convertInWater- See Also:
- Constant Field Values
-
GRINDSTONE_USED
public static final int GRINDSTONE_USEDA Grindstone is used.
Plays the grindstone used sound event.Called by
GrindstoneScreenHandler- See Also:
- Constant Field Values
-
LECTERN_BOOK_PAGE_TURNED
public static final int LECTERN_BOOK_PAGE_TURNEDA page is turned in a Book on a Lectern.
Plays the page turn sound event.Called by
LecternBlock#setPowered- See Also:
- Constant Field Values
-
SMITHING_TABLE_USED
public static final int SMITHING_TABLE_USEDA Smithing Table is used.
Plays the smithing table used sound event.Called by
SmithingScreenHandler#onTakeOutput- See Also:
- Constant Field Values
-
POINTED_DRIPSTONE_LANDS
public static final int POINTED_DRIPSTONE_LANDSPointed Dripstone lands after falling.
Plays the pointed dripstone landing sound event.- See Also:
- Constant Field Values
-
POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON
public static final int POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRONPointed Dripstone drips Lava into a Cauldron.
Plays the pointed dripstone dripping lava into cauldron sound event.Called by
CauldronBlock#fillFromDripstone- See Also:
- Constant Field Values
-
POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON
public static final int POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRONPointed Dripstone drips Water into a Cauldron.
Plays the pointed dripstone dripping water into cauldron sound event.Called by
CauldronBlock#fillFromDripstone, andLeveledCauldronBlock#fillFromDripstone- See Also:
- Constant Field Values
-
SKELETON_CONVERTS_TO_STRAY
public static final int SKELETON_CONVERTS_TO_STRAYA Skeleton converts into a Stray.
Plays the skeleton convert to stray sound event.Called by
SkeletonEntity#convertToStray- See Also:
- Constant Field Values
-
COMPOSTER_USED
public static final int COMPOSTER_USEDAn item is composted in a Composter.
Plays the appropriate composting sound event and spawns composter particles.A
1should 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, andFarmerWorkTask#syncComposterEvent- See Also:
- Constant Field Values
-
LAVA_EXTINGUISHED
public static final int LAVA_EXTINGUISHEDLava is extinguished.
Plays the lava extinguish sound event and spawns large smoke particles.Called by
FluidBlock#playExtinguishSound, andLavaFluid#playExtinguishEvent- See Also:
- Constant Field Values
-
REDSTONE_TORCH_BURNS_OUT
public static final int REDSTONE_TORCH_BURNS_OUTA Redstone Torch burns out.
Plays the redstone torch burn out sound event and spawns smoke particles.Called by
RedstoneTorchBlock#scheduledTick- See Also:
- Constant Field Values
-
END_PORTAL_FRAME_FILLED
public static final int END_PORTAL_FRAME_FILLEDAn 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:
- Constant Field Values
-
POINTED_DRIPSTONE_DRIPS
public static final int POINTED_DRIPSTONE_DRIPSPointed Dripstone drips fluid particles.
Spawns dripping fluid particles.Called by
PointedDripstoneBlock#dripTick- See Also:
- Constant Field Values
-
DISPENSER_ACTIVATED
public static final int DISPENSER_ACTIVATEDA Dispenser is activated.
Spawns smoke particles.
The ordinal direction the dispenser is facing must be supplied as extra data.Called by
ItemDispenserBehavior#spawnParticles- See Also:
- Constant Field Values
-
BLOCK_BROKEN
public static final int BLOCK_BROKENA block is broken.
Plays the appropriate block breaking sound event and spawns block breaking particles.The raw ID of the block must be supplied as extra data.
Called by
Block#spawnBreakParticles,TallPlantBlock#onBreakInCreative,BreakDoorGoal#tick,CarvedPumpkinBlock#trySpawnEntity,EatGrassGoal#tick,FoxEntity#tick,PowderSnowBlock#tryDrainFluid,RabbitEntity.EatCarrotCropGoal#tick,SpongeBlock#update,TurtleEggBlock#breakEgg,TurtleEggBlock#randomTick,TurtleEntity#tickMovement,WitherSkullBlock#onPlaced, andWorld#breakBlock- See Also:
- Constant Field Values
-
SPLASH_POTION_SPLASHED
public static final int SPLASH_POTION_SPLASHEDA 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, andPotionEntity#onCollision- See Also:
- Constant Field Values
-
EYE_OF_ENDER_BREAKS
public static final int EYE_OF_ENDER_BREAKSA thrown Eye of Ender breaks.
Spawns several particles.Called by
EyeOfEnderEntity#tick- See Also:
- Constant Field Values
-
SPAWNER_SPAWNS
public static final int SPAWNER_SPAWNSA Spawner spawns mobs.
Spawns smoke and flame particles.Called by
MobSpawnerLogic#serverTick- See Also:
- Constant Field Values
-
PLANT_FERTILIZED
public static final int PLANT_FERTILIZEDA plant is fertilized with Bone Meal or by a Bee, or a Turtle Egg is placed
Spawns happy villager particles.Called by
BeeEntity.GrowCropsGoal#tick,BoneMealItem#useOnBlock,BoneMealTask#keepRunning,DispenserBehavior, andTurtleEggBlock#onBlockAdded- See Also:
- Constant Field Values
-
DRAGON_BREATH_CLOUD_SPAWNS
public static final int DRAGON_BREATH_CLOUD_SPAWNSA Dragon Breath Cloud spawns.
Plays the dragon fireball explode sound event and spawns dragon breath particles.Called by
DragonFireballEntity#onCollision- See Also:
- Constant Field Values
-
INSTANT_SPLASH_POTION_SPLASHED
public static final int INSTANT_SPLASH_POTION_SPLASHEDAn 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:
- Constant Field Values
-
ENDER_DRAGON_BREAKS_BLOCK
public static final int ENDER_DRAGON_BREAKS_BLOCKAn Ender Dragon breaks a block.
Spawns an explosion particle.Called by
EnderDragonEntity#destroyBlocks- See Also:
- Constant Field Values
-
WET_SPONGE_DRIES_OUT
public static final int WET_SPONGE_DRIES_OUTA Wet Sponge dries out in a hot dimension.
Spawns cloud particles.Called by
WetSpongeBlock#onBlockAdded- See Also:
- Constant Field Values
-
END_GATEWAY_SPAWNS
public static final int END_GATEWAY_SPAWNSAn End Gateway spawns.
Plays the end gateway spawn sound event and spawns an explosion emitter particle.Called by
EnderDragonFight#generateEndGateway- See Also:
- Constant Field Values
-
ENDER_DRAGON_RESURRECTED
public static final int ENDER_DRAGON_RESURRECTEDThe Ender Dragon is being resurrected.
Plays the ender dragon growl sound event.Called by
EnderDragonSpawnState#run- See Also:
- Constant Field Values
-
ELECTRICITY_SPARKS
public static final int ELECTRICITY_SPARKSElectricity 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-1should be passed if the event is called by a lightning entity itself.Called by
LightningRodBlock#setPowered, andLightningEntity#cleanOxidizationAround- See Also:
- Constant Field Values
-
BLOCK_WAXED
public static final int BLOCK_WAXEDA block is waxed.
Plays the block waxing sound event and spawns waxing particles.Called by
HoneycombItem#useOnBlock- See Also:
- Constant Field Values
-
WAX_REMOVED
public static final int WAX_REMOVEDWax is removed from a block.
Spawns wax removal particles.Called by
AxeItem#useOnBlock- See Also:
- Constant Field Values
-
BLOCK_SCRAPED
public static final int BLOCK_SCRAPEDA block is scraped.
Spawns scraping particles.Called by
AxeItem#useOnBlock- See Also:
- Constant Field Values
-
-
Constructor Details
-
WorldEvents
private WorldEvents()
-