diff --git a/mappings/net/minecraft/structure/StructureStart.mapping b/mappings/net/minecraft/structure/StructureStart.mapping index 34dec11d28..5b95bd1e3f 100644 --- a/mappings/net/minecraft/structure/StructureStart.mapping +++ b/mappings/net/minecraft/structure/StructureStart.mapping @@ -15,9 +15,14 @@ CLASS net/minecraft/class_3449 net/minecraft/structure/StructureStart FIELD field_16714 feature Lnet/minecraft/class_3195; FIELD field_16715 random Lnet/minecraft/class_2919; FIELD field_29070 pos Lnet/minecraft/class_1923; + FIELD field_29328 LOGGER Lorg/apache/logging/log4j/Logger; + FIELD field_31662 INVALID Ljava/lang/String; + FIELD field_31663 boundingBox Lnet/minecraft/class_3341; METHOD (Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;IJ)V ARG 1 feature ARG 2 pos + ARG 3 references + ARG 4 seed METHOD method_14962 getBlockPos ()Lnet/minecraft/class_2338; METHOD method_14963 getChildren ()Ljava/util/List; METHOD method_14964 incrementReferences ()V @@ -25,6 +30,7 @@ CLASS net/minecraft/class_3449 net/minecraft/structure/StructureStart METHOD method_14970 getReferenceCountToBeInExistingChunk ()I METHOD method_14972 toNbt (Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487; ARG 1 world + ARG 2 chunkPos METHOD method_14974 generateStructure (Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;)V ARG 1 world ARG 2 structureAccessor @@ -38,6 +44,7 @@ CLASS net/minecraft/class_3449 net/minecraft/structure/StructureStart ARG 3 maxY METHOD method_14978 randomUpwardTranslation (IILjava/util/Random;I)V ARG 1 seaLevel + ARG 3 random METHOD method_14979 isInExistingChunk ()Z METHOD method_16655 init (Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_3485;Lnet/minecraft/class_1923;Lnet/minecraft/class_1959;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;)V ARG 1 registryManager @@ -51,3 +58,13 @@ CLASS net/minecraft/class_3449 net/minecraft/structure/StructureStart METHOD method_16657 hasChildren ()Z METHOD method_23676 getReferences ()I METHOD method_34000 getPos ()Lnet/minecraft/class_1923; + METHOD method_35463 translateUpward (I)V + ARG 1 amount + METHOD method_35464 contains (Lnet/minecraft/class_2338;)Z + ARG 1 pos + METHOD method_35465 intersects (Ljava/util/List;Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443; + ARG 0 pieces + ARG 1 box + METHOD method_35466 clearChildren ()V + METHOD method_35467 hasNoChildren ()Z + METHOD method_35468 resetBoundingBox ()V diff --git a/mappings/net/minecraft/world/WorldEvents.mapping b/mappings/net/minecraft/world/WorldEvents.mapping new file mode 100644 index 0000000000..da84f98b97 --- /dev/null +++ b/mappings/net/minecraft/world/WorldEvents.mapping @@ -0,0 +1,344 @@ +CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents + COMMENT Constants of World Event IDs. + COMMENT

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

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

Events are sent from the server to the client using {@link net.minecraft.network.packet.s2c.play.WorldEventS2CPacket WorldEventS2CPacket}, + COMMENT received on the client by {@link net.minecraft.client.network.ClientPlayNetworkHandler#onWorldEvent(net.minecraft.network.packet.s2c.play.WorldEventS2CPacket) ClientPlayNetworkHandler#onWorldEvent}, + COMMENT synced by {@link net.minecraft.client.world.ClientWorld#syncWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncWorldEvent} and + COMMENT {@link net.minecraft.client.world.ClientWorld#syncGlobalEvent(int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncGlobalEvent} (for regular and global events respectively), and + COMMENT finally processed by {@link net.minecraft.client.render.WorldRenderer#processWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processWorldEvent} and + COMMENT {@link net.minecraft.client.render.WorldRenderer#processGlobalEvent(int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processGlobalEvent} (for regular and global events respectively). + FIELD field_31114 ZOMBIE_INFECTS_VILLAGER I + COMMENT A Zombie infects a Villager. + COMMENT
Plays the zombie infect villager sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.ZombieEntity#onKilledOther(net.minecraft.server.world.ServerWorld, net.minecraft.entity.LivingEntity) ZombieEntity#onKilledOther} + FIELD field_31115 ZOMBIE_VILLAGER_CURED I + COMMENT A Zombie Villager is cured. + COMMENT
Plays the zombie villager cured sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.ZombieVillagerEntity#finishConversion(net.minecraft.server.world.ServerWorld) ZombieVillagerEntity#finishConversion} + FIELD field_31116 ENDER_DRAGON_DIES I + COMMENT An Ender Dragon dies. + COMMENT
Plays the ender dragon death sound event. + COMMENT
This is a global event. + COMMENT

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonEntity#updatePostDeath() EnderDragonEntity#updatePostDeath} + FIELD field_31117 ANVIL_DESTROYED I + COMMENT An Anvil is destroyed from damage. + COMMENT
Plays the anvil destroyed sound event. + COMMENT

Called by {@link net.minecraft.block.AnvilBlock#onDestroyedOnLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.FallingBlockEntity) AnvilBlock#onDestroyedOnLanding}, + COMMENT and {@link net.minecraft.screen.AnvilScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) AnvilScreenHandler#onTakeOutput} + FIELD field_31118 ANVIL_USED I + COMMENT An Anvil is used. + COMMENT
Plays the anvil used sound event. + COMMENT

Called by {@link net.minecraft.screen.AnvilScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) AnvilScreenHandler#onTakeOutput} + FIELD field_31119 ANVIL_LANDS I + COMMENT An Anvil lands after falling. + COMMENT
Plays the anvil landing sound event. + COMMENT

Called by {@link net.minecraft.block.AnvilBlock#onLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.block.BlockState, net.minecraft.entity.FallingBlockEntity) AnvilBlock#onLanding} + FIELD field_31120 TRAVEL_THROUGH_PORTAL I + COMMENT A Portal is travelled through. + COMMENT
Plays the portal travel sound event directly through the client's sound manager. + COMMENT

Called by {@link net.minecraft.server.network.ServerPlayerEntity#moveToWorld(net.minecraft.server.world.ServerWorld) ServerPlayerEntity#moveToWorld} + FIELD field_31121 CHORUS_FLOWER_GROWS I + COMMENT A Chorus Flower grows. + COMMENT
Plays the chorus flower growing sound event. + COMMENT

Called by {@link net.minecraft.block.ChorusFlowerBlock#grow(net.minecraft.world.World, net.minecraft.util.math.BlockPos, int) ChorusFlowerBlock#grow} + FIELD field_31122 CHORUS_FLOWER_DIES I + COMMENT A Chorus Flower dies. + COMMENT
Plays the chorus flower death sound event. + COMMENT

Called by {@link net.minecraft.block.ChorusFlowerBlock#die(net.minecraft.world.World, net.minecraft.util.math.BlockPos) ChorusFlowerBlock#die} + FIELD field_31123 BREWING_STAND_BREWS I + COMMENT A Brewing Stand brews. + COMMENT
Plays the brewing stand brewing sound event. + COMMENT

Called by {@link net.minecraft.block.entity.BrewingStandBlockEntity#craft(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.util.collection.DefaultedList) BrewingStandBlockEntity#craft} + FIELD field_31124 IRON_TRAPDOOR_CLOSES I + COMMENT An Iron Trapdoor closes. + COMMENT
Plays the iron trapdoor closing sound event. + COMMENT

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} + FIELD field_31125 IRON_TRAPDOOR_OPENS I + COMMENT An Iron Trapdoor opens. + COMMENT
Plays the iron trapdoor opening sound event. + COMMENT

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} + FIELD field_31126 END_PORTAL_OPENED I + COMMENT An End Portal is opened. + COMMENT
Plays the end portal spawn sound event. + COMMENT
This is a global event. + COMMENT

Called by {@link net.minecraft.item.EnderEyeItem#useOnBlock(net.minecraft.item.ItemUsageContext) EnderEyeItem#useOnBlock} + FIELD field_31127 PHANTOM_BITES I + COMMENT A Phantom bites its victim. + COMMENT
Plays the phantom bite sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.PhantomEntity.SwoopMovementGoal#tick() PhantomEntity.SwoopMovementGoal#tick} + FIELD field_31128 ZOMBIE_CONVERTS_TO_DROWNED I + COMMENT A Zombie converts into a Drowned. + COMMENT
Plays the zombie convert to drowned sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.ZombieEntity#convertInWater() ZombieEntity#convertInWater} + FIELD field_31129 HUSK_CONVERTS_TO_ZOMBIE I + COMMENT A Husk converts into a Zombie. + COMMENT
Plays the husk convert to zombie sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.HuskEntity#convertInWater() HuskEntity#convertInWater} + FIELD field_31130 GRINDSTONE_USED I + COMMENT A Grindstone is used. + COMMENT
Plays the grindstone used sound event. + COMMENT

Called by {@link net.minecraft.screen.GrindstoneScreenHandler GrindstoneScreenHandler} + FIELD field_31131 LECTERN_BOOK_PAGE_TURNED I + COMMENT A page is turned in a Book on a Lectern. + COMMENT
Plays the page turn sound event. + COMMENT

Called by {@link net.minecraft.block.LecternBlock#setPowered(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) LecternBlock#setPowered} + FIELD field_31132 SMITHING_TABLE_USED I + COMMENT A Smithing Table is used. + COMMENT
Plays the smithing table used sound event. + COMMENT

Called by {@link net.minecraft.screen.SmithingScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) SmithingScreenHandler#onTakeOutput} + FIELD field_31133 POINTED_DRIPSTONE_LANDS I + COMMENT Pointed Dripstone lands after falling. + COMMENT
Plays the pointed dripstone landing sound event. + COMMENT

Called by {@link net.minecraft.block.PointedDripstoneBlock#onDestroyedOnLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.FallingBlockEntity) PointedDripstoneBlock#onDestroyedOnLanding} + FIELD field_31134 POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON I + COMMENT Pointed Dripstone drips Lava into a Cauldron. + COMMENT
Plays the pointed dripstone dripping lava into cauldron sound event. + COMMENT

Called by {@link net.minecraft.block.CauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) CauldronBlock#fillFromDripstone} + FIELD field_31135 POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON I + COMMENT Pointed Dripstone drips Water into a Cauldron. + COMMENT
Plays the pointed dripstone dripping water into cauldron sound event. + COMMENT

Called by {@link net.minecraft.block.CauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) CauldronBlock#fillFromDripstone}, + COMMENT and {@link net.minecraft.block.LeveledCauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) LeveledCauldronBlock#fillFromDripstone} + FIELD field_31136 SKELETON_CONVERTS_TO_STRAY I + COMMENT A Skeleton converts into a Stray. + COMMENT
Plays the skeleton convert to stray sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.SkeletonEntity#convertToStray() SkeletonEntity#convertToStray} + FIELD field_31137 COMPOSTER_USED I + COMMENT An item is composted in a Composter. + COMMENT
Plays the appropriate composting sound event and spawns composter particles. + COMMENT

A {@code 1} should be passed as extra data if the use of the composter added to the level of compost inside. + COMMENT

Called by {@link net.minecraft.block.ComposterBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) ComposterBlock#onUse}, + COMMENT {@link net.minecraft.block.ComposterBlock.ComposterInventory#markDirty() ComposterBlock.ComposterInventory#markDirty}, + COMMENT and {@link net.minecraft.entity.ai.brain.task.FarmerWorkTask#syncComposterEvent(net.minecraft.server.world.ServerWorld, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) FarmerWorkTask#syncComposterEvent} + FIELD field_31138 LAVA_EXTINGUISHED I + COMMENT Lava is extinguished. + COMMENT
Plays the lava extinguish sound event and spawns large smoke particles. + COMMENT

Called by {@link net.minecraft.block.FluidBlock#playExtinguishSound(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos) FluidBlock#playExtinguishSound}, + COMMENT and {@link net.minecraft.fluid.LavaFluid#playExtinguishEvent(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos) LavaFluid#playExtinguishEvent} + FIELD field_31139 REDSTONE_TORCH_BURNS_OUT I + COMMENT A Redstone Torch burns out. + COMMENT
Plays the redstone torch burn out sound event and spawns smoke particles. + COMMENT

Called by {@link net.minecraft.block.RedstoneTorchBlock#scheduledTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) RedstoneTorchBlock#scheduledTick} + FIELD field_31140 DISPENSER_DISPENSES I + COMMENT A Dispenser dispenses an item. + COMMENT
Plays the dispensing sound event. + COMMENT

Called by {@link net.minecraft.block.dispenser.BoatDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) BoatDispenserBehavior#playSound}, + COMMENT {@link net.minecraft.block.dispenser.FallibleItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) FallibleItemDispenserBehavior#playSound}, + COMMENT {@link net.minecraft.block.dispenser.ItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) ItemDispenserBehavior#playSound}, + COMMENT and {@link net.minecraft.item.MinecartItem#DISPENSER_BEHAVIOR MinecartItem#DISPENSER_BEHAVIOR} + FIELD field_31141 END_PORTAL_FRAME_FILLED I + COMMENT An End Portal Frame is filled with an Eye of Ender. + COMMENT
Plays the end portal frame filled sound event and spawns smoke particles. + COMMENT

Called by {@link net.minecraft.item.EnderEyeItem#useOnBlock(net.minecraft.item.ItemUsageContext) EnderEyeItem#useOnBlock} + FIELD field_31142 POINTED_DRIPSTONE_DRIPS I + COMMENT Pointed Dripstone drips fluid particles. + COMMENT
Spawns dripping fluid particles. + COMMENT

Called by {@link net.minecraft.block.PointedDripstoneBlock#dripTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, float) PointedDripstoneBlock#dripTick} + FIELD field_31143 DISPENSER_ACTIVATED I + COMMENT A Dispenser is activated. + COMMENT
Spawns smoke particles. + COMMENT
The ordinal direction the dispenser is facing must be supplied as extra data. + COMMENT

Called by {@link net.minecraft.block.dispenser.ItemDispenserBehavior#spawnParticles(net.minecraft.util.math.BlockPointer, net.minecraft.util.math.Direction) ItemDispenserBehavior#spawnParticles} + FIELD field_31144 BLOCK_BROKEN I + COMMENT A block is broken. + COMMENT
Plays the appropriate block breaking sound event and spawns block breaking particles. + COMMENT

The raw ID of the block must be supplied as extra data. + COMMENT

Called by {@link net.minecraft.block.Block#spawnBreakParticles(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) Block#spawnBreakParticles}, + COMMENT {@link net.minecraft.block.TallPlantBlock#onBreakInCreative(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.player.PlayerEntity) TallPlantBlock#onBreakInCreative}, + COMMENT {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick}, + COMMENT {@link net.minecraft.block.CarvedPumpkinBlock#trySpawnEntity(net.minecraft.world.World, net.minecraft.util.math.BlockPos) CarvedPumpkinBlock#trySpawnEntity}, + COMMENT {@link net.minecraft.entity.ai.goal.EatGrassGoal#tick() EatGrassGoal#tick}, + COMMENT {@link net.minecraft.entity.passive.FoxEntity#tick() FoxEntity#tick}, + COMMENT {@link net.minecraft.block.PowderSnowBlock#tryDrainFluid(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) PowderSnowBlock#tryDrainFluid}, + COMMENT {@link net.minecraft.entity.passive.RabbitEntity.EatCarrotCropGoal#tick() RabbitEntity.EatCarrotCropGoal#tick}, + COMMENT {@link net.minecraft.block.SpongeBlock#update(net.minecraft.world.World, net.minecraft.util.math.BlockPos) SpongeBlock#update}, + COMMENT {@link net.minecraft.block.TurtleEggBlock#breakEgg(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) TurtleEggBlock#breakEgg}, + COMMENT {@link net.minecraft.block.TurtleEggBlock#randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) TurtleEggBlock#randomTick}, + COMMENT {@link net.minecraft.entity.passive.TurtleEntity#tickMovement() TurtleEntity#tickMovement}, + COMMENT {@link net.minecraft.block.WitherSkullBlock#onPlaced(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.entity.SkullBlockEntity) WitherSkullBlock#onPlaced}, + COMMENT and {@link net.minecraft.world.World#breakBlock(net.minecraft.util.math.BlockPos, boolean, net.minecraft.entity.Entity, int) World#breakBlock} + FIELD field_31145 SPLASH_POTION_SPLASHED I + COMMENT A non-instant Splash Potion is splashed. + COMMENT
Plays the splash potion breaking sound event and spawns splash potion particles. + COMMENT

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

For instant effects such as Instant Health and Instant Damage, use {@link #INSTANT_SPLASH_POTION_SPLASHED}. + COMMENT

Called by {@link net.minecraft.entity.projectile.thrown.ExperienceBottleEntity#onCollision(net.minecraft.util.hit.HitResult) ExperienceBottleEntity#onCollision}, + COMMENT and {@link net.minecraft.entity.projectile.thrown.PotionEntity#onCollision(net.minecraft.util.hit.HitResult) PotionEntity#onCollision} + FIELD field_31146 EYE_OF_ENDER_BREAKS I + COMMENT A thrown Eye of Ender breaks. + COMMENT
Spawns several particles. + COMMENT

Called by {@link net.minecraft.entity.EyeOfEnderEntity#tick() EyeOfEnderEntity#tick} + FIELD field_31147 SPAWNER_SPAWNS_MOB I + COMMENT A Spawner spawns a mob. + COMMENT
Spawns smoke and flame particles. + COMMENT

Called by {@link net.minecraft.world.MobSpawnerLogic#serverTick(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) MobSpawnerLogic#serverTick} + FIELD field_31148 PLANT_FERTILIZED I + COMMENT A plant is fertilized with Bone Meal or by a Bee, or a Turtle Egg is placed + COMMENT
Spawns happy villager particles. + COMMENT

Called by {@link net.minecraft.entity.passive.BeeEntity.GrowCropsGoal#tick() BeeEntity.GrowCropsGoal#tick}, + COMMENT {@link net.minecraft.item.BoneMealItem#useOnBlock(net.minecraft.item.ItemUsageContext) BoneMealItem#useOnBlock}, + COMMENT {@link net.minecraft.entity.ai.brain.task.BoneMealTask#keepRunning(net.minecraft.server.world.ServerWorld, net.minecraft.entity.passive.VillagerEntity, long) BoneMealTask#keepRunning}, + COMMENT {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior}, + COMMENT and {@link net.minecraft.block.TurtleEggBlock#onBlockAdded(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) TurtleEggBlock#onBlockAdded} + FIELD field_31149 DRAGON_BREATH_CLOUD_SPAWNS I + COMMENT A Dragon Breath Cloud spawns. + COMMENT
Plays the dragon fireball explode sound event and spawns dragon breath particles. + COMMENT

Called by {@link net.minecraft.entity.projectile.DragonFireballEntity#onCollision(net.minecraft.util.hit.HitResult) DragonFireballEntity#onCollision} + FIELD field_31150 INSTANT_SPLASH_POTION_SPLASHED I + COMMENT An instant Splash Potion is splashed. + COMMENT
Plays the splash potion breaking sound event and spawns instant splash potion particles. + COMMENT

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

For non-instant effects, use {@link #SPLASH_POTION_SPLASHED}. + COMMENT

Called by {@link net.minecraft.entity.projectile.thrown.PotionEntity#onCollision(net.minecraft.util.hit.HitResult) PotionEntity#onCollision} + FIELD field_31151 ENDER_DRAGON_BREAKS_BLOCK I + COMMENT An Ender Dragon breaks a block. + COMMENT
Spawns an explosion particle. + COMMENT

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonEntity#destroyBlocks(net.minecraft.util.math.Box) EnderDragonEntity#destroyBlocks} + FIELD field_31152 WET_SPONGE_DRIES_OUT I + COMMENT A Wet Sponge dries out in a hot dimension. + COMMENT
Spawns cloud particles. + COMMENT

Called by {@link net.minecraft.block.WetSpongeBlock#onBlockAdded(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) WetSpongeBlock#onBlockAdded} + COMMENT lic static final int WET_SPONGE_DRIES_OUT = 2009; + FIELD field_31153 END_GATEWAY_SPAWNS I + COMMENT An End Gateway spawns. + COMMENT
Plays the end gateway spawn sound event and spawns an explosion emitter particle. + COMMENT

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonFight#generateEndGateway(net.minecraft.util.math.BlockPos) EnderDragonFight#generateEndGateway} + FIELD field_31154 ENDER_DRAGON_RESURRECTED I + COMMENT The Ender Dragon is being resurrected. + COMMENT
Plays the ender dragon growl sound event. + COMMENT

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonSpawnState#run(net.minecraft.server.world.ServerWorld, net.minecraft.entity.boss.dragon.EnderDragonFight, java.util.List, int, net.minecraft.util.math.BlockPos) EnderDragonSpawnState#run} + FIELD field_31155 ELECTRICITY_SPARKS I + COMMENT Electricity sparks after Lightning hits a Lightning Rod or Oxidizable blocks. + COMMENT
Spawns electric spark particles. + COMMENT

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

Called by {@link net.minecraft.block.LightningRodBlock#setPowered(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos) LightningRodBlock#setPowered}, + COMMENT and {@link net.minecraft.entity.LightningEntity#cleanOxidizationAround(net.minecraft.world.World, net.minecraft.util.math.BlockPos) LightningEntity#cleanOxidizationAround} + FIELD field_31156 BLOCK_WAXED I + COMMENT A block is waxed. + COMMENT
Plays the block waxing sound event and spawns waxing particles. + COMMENT

Called by {@link net.minecraft.item.HoneycombItem#useOnBlock(net.minecraft.item.ItemUsageContext) HoneycombItem#useOnBlock} + FIELD field_31157 WAX_REMOVED I + COMMENT Wax is removed from a block. + COMMENT
Spawns wax removal particles. + COMMENT

Called by {@link net.minecraft.item.AxeItem#useOnBlock(net.minecraft.item.ItemUsageContext) AxeItem#useOnBlock} + FIELD field_31158 BLOCK_SCRAPED I + COMMENT A block is scraped. + COMMENT
Spawns scraping particles. + COMMENT

Called by {@link net.minecraft.item.AxeItem#useOnBlock(net.minecraft.item.ItemUsageContext) AxeItem#useOnBlock} + FIELD field_31159 DISPENSER_FAILS I + COMMENT A Dispenser fails to dispense an item. + COMMENT
Plays the dispenser fail sound event. + COMMENT

Called by {@link net.minecraft.block.DispenserBlock#dispense(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) DispenserBlock#dispense}, + COMMENT {@link net.minecraft.block.DropperBlock#dispense(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) DropperBlock#dispense}, + COMMENT and {@link net.minecraft.block.dispenser.FallibleItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) FallibleItemDispenserBehavior#playSound} + FIELD field_31160 DISPENSER_LAUNCHES_PROJECTILE I + COMMENT A Dispenser launches a projectile. + COMMENT
Plays the dispenser launch sound event. + COMMENT

Called by {@link net.minecraft.block.dispenser.ProjectileDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) ProjectileDispenserBehavior#playSound} + FIELD field_31161 EYE_OF_ENDER_LAUNCHES I + COMMENT An Eye of Ender is launched. + COMMENT
Plays the eye of ender launching sound event. + COMMENT

Called by {@link net.minecraft.item.EnderEyeItem#use(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand) EnderEyeItem#use} + FIELD field_31162 FIREWORK_ROCKET_SHOOTS I + COMMENT A Firework Rocket is shot. + COMMENT
Plays the firework shoot sound event. + COMMENT

Called by {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior} + FIELD field_31163 IRON_DOOR_OPENS I + COMMENT An Iron Door is opened. + COMMENT
Plays the iron door opening sound event. + COMMENT

Called by {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} + FIELD field_31164 WOODEN_DOOR_OPENS I + COMMENT A Wooden Door is opened. + COMMENT
Plays the wooden door opening sound event. + COMMENT

Called by {@link net.minecraft.block.DoorBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) DoorBlock#onUse}, + COMMENT and {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} + FIELD field_31165 WOODEN_TRAPDOOR_OPENS I + COMMENT A Wooden Trapdoor is opened. + COMMENT
Plays the wooden trapdoor opening sound event. + COMMENT

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} + FIELD field_31166 FENCE_GATE_OPENS I + COMMENT A Fence Gate is opened. + COMMENT
Plays the fence gate opening sound event. + COMMENT

Called by {@link net.minecraft.block.FenceGateBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) FenceGateBlock#onUse}, + COMMENT and {@link net.minecraft.block.FenceGateBlock#neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) FenceGateBlock#neighborUpdate} + FIELD field_31167 FIRE_EXTINGUISHED I + COMMENT A fire block or campfire is extinguished. + COMMENT
Plays the fire extinguish sound event. + COMMENT

Called by {@link net.minecraft.block.AbstractFireBlock#onBreak(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.player.PlayerEntity) AbstractFireBlock#onBreak}, + COMMENT {@link net.minecraft.entity.projectile.thrown.PotionEntity#extinguishFire(net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction) PotionEntity#extinguishFire}, + COMMENT and {@link net.minecraft.item.ShovelItem#useOnBlock(net.minecraft.item.ItemUsageContext) ShovelItem#useOnBlock} + FIELD field_31168 MUSIC_DISC_PLAYED I + COMMENT A Music Disc is played. + COMMENT
Plays the appropriate music. + COMMENT
The Raw ID of the Music Disc item must be supplied as extra data. + COMMENT
A {@code 0} should be passed to stop music. + COMMENT

Called by {@link net.minecraft.item.MusicDiscItem#useOnBlock(net.minecraft.item.ItemUsageContext) MusicDiscItem#useOnBlock}, + COMMENT and {@link net.minecraft.block.JukeboxBlock#removeRecord(net.minecraft.world.World, net.minecraft.util.math.BlockPos) JukeboxBlock#removeRecord} + FIELD field_31169 IRON_DOOR_CLOSES I + COMMENT An Iron Door is closed. + COMMENT
Plays the iron door closing sound event. + COMMENT

Called by {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} + FIELD field_31170 WOODEN_DOOR_CLOSES I + COMMENT A Wooden Door is closed. + COMMENT
Plays the wooden door closing sound event. + COMMENT

Called by {@link net.minecraft.block.DoorBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) DoorBlock#onUse}, + COMMENT and {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} + FIELD field_31171 WOODEN_TRAPDOOR_CLOSES I + COMMENT A Wooden Trapdoor is closed. + COMMENT
Plays the wooden trapdoor closing sound event. + COMMENT

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} + FIELD field_31172 FENCE_GATE_CLOSES I + COMMENT A Fence Gate is closed. + COMMENT
Plays the fence gate closing sound event. + COMMENT

Called by {@link net.minecraft.block.FenceGateBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) FenceGateBlock#onUse}, + COMMENT and {@link net.minecraft.block.FenceGateBlock#neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) FenceGateBlock#neighborUpdate} + FIELD field_31173 GHAST_WARNS I + COMMENT A Ghast warns its victim. + COMMENT
Plays the ghast warn sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.GhastEntity.ShootFireballGoal#tick() GhastEntity.ShootFireballGoal#tick} + FIELD field_31174 GHAST_SHOOTS I + COMMENT A Ghast shoots a fireball. + COMMENT
Plays the ghast shoot sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.GhastEntity.ShootFireballGoal#tick() GhastEntity.ShootFireballGoal#tick} + FIELD field_31175 ENDER_DRAGON_SHOOTS I + COMMENT An Ender Dragon shoots a fireball. + COMMENT
Plays the ender dragon shoot sound event. + COMMENT

Called by {@link net.minecraft.entity.boss.dragon.phase.StrafePlayerPhase#serverTick() StrafePlayerPhase#serverTick} + FIELD field_31176 BLAZE_SHOOTS I + COMMENT A Blaze shoots a fireball or a Fire Charge is shot by a dispenser. + COMMENT
Plays the blaze shoot sound event. + COMMENT

Called by {@link net.minecraft.entity.mob.BlazeEntity.ShootFireballGoal#tick() BlazeEntity.ShootFireballGoal#tick}, + COMMENT and {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior} + FIELD field_31177 ZOMBIE_ATTACKS_WOODEN_DOOR I + COMMENT A Zombie attacks a Wooden Door. + COMMENT
Plays the zombie attacking wooden door sound event. + COMMENT

Called by {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick} + FIELD field_31178 ZOMBIE_ATTACKS_IRON_DOOR I + COMMENT A Zombie attacks an Iron Door. + COMMENT
Plays the zombie attacking iron door sound event. + COMMENT
Goes unused. + FIELD field_31179 ZOMBIE_BREAKS_WOODEN_DOOR I + COMMENT A Zombie breaks a Wooden Door. + COMMENT
Plays the zombie breaking wooden door sound event. + COMMENT

Called by {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick} + FIELD field_31180 WITHER_BREAKS_BLOCK I + COMMENT A Wither breaks a block. + COMMENT
Plays the wither breaking block sound event. + COMMENT

Called by {@link net.minecraft.entity.boss.WitherEntity#mobTick() WitherEntity#mobTick} + FIELD field_31181 WITHER_SPAWNS I + COMMENT A Wither is spawned. + COMMENT
Plays the wither spawn sound event. + COMMENT
This is a global event. + COMMENT

Called by {@link net.minecraft.entity.boss.WitherEntity#mobTick() WitherEntity#mobTick} + FIELD field_31182 WITHER_SHOOTS I + COMMENT A Wither shoots a wither skull. + COMMENT
Plays the wither shoot sound event. + COMMENT

Called by {@link net.minecraft.entity.boss.WitherEntity#shootSkullAt(int, double, double, double, boolean) WitherEntity#shootSkullAt} + FIELD field_31183 BAT_TAKES_OFF I + COMMENT A Bat takes off. + COMMENT
Plays the bat take off sound event. + COMMENT

Called by {@link net.minecraft.entity.passive.BatEntity#mobTick() BatEntity#mobTick} diff --git a/mappings/net/minecraft/world/biome/BiomeIds.mapping b/mappings/net/minecraft/world/biome/BiomeIds.mapping new file mode 100644 index 0000000000..c0d4e12bca --- /dev/null +++ b/mappings/net/minecraft/world/biome/BiomeIds.mapping @@ -0,0 +1,69 @@ +CLASS net/minecraft/class_6142 net/minecraft/world/biome/BiomeIds + FIELD field_31731 BIRCH_FOREST I + FIELD field_31732 BIRCH_FOREST_HILLS I + FIELD field_31733 DARK_FOREST I + FIELD field_31734 SNOWY_TAIGA I + FIELD field_31735 SNOWY_TAIGA_HILLS I + FIELD field_31736 GIANT_TREE_TAIGA I + FIELD field_31737 GIANT_TREE_TAIGA_HILLS I + FIELD field_31738 WOODED_MOUNTAINS I + FIELD field_31739 SAVANNA I + FIELD field_31740 SAVANNA_PLATEAU I + FIELD field_31741 BADLANDS I + FIELD field_31742 WOODED_BADLANDS_PLATEAU I + FIELD field_31743 BADLANDS_PLATEAU I + FIELD field_31744 WARM_OCEAN I + FIELD field_31745 LUKEWARM_OCEAN I + FIELD field_31746 COLD_OCEAN I + FIELD field_31747 DEEP_WARM_OCEAN I + FIELD field_31748 DEEP_LUKEWARM_OCEAN I + FIELD field_31749 DEEP_COLD_OCEAN I + FIELD field_31750 DEEP_FROZEN_OCEAN I + FIELD field_31751 SUNFLOWER_PLAINS I + FIELD field_31752 DESERT_LAKES I + FIELD field_31753 GRAVELLY_MOUNTAINS I + FIELD field_31754 FLOWER_FOREST I + FIELD field_31755 TAIGA_MOUNTAINS I + FIELD field_31756 SWAMP_HILLS I + FIELD field_31757 ICE_SPIKES I + FIELD field_31758 MODIFIED_JUNGLE I + FIELD field_31759 MODIFIED_JUNGLE_EDGE I + FIELD field_31760 TALL_BIRCH_FOREST I + FIELD field_31761 TALL_BIRCH_HILLS I + FIELD field_31762 DARK_FOREST_HILLS I + FIELD field_31763 SNOWY_TAIGA_MOUNTAINS I + FIELD field_31764 GIANT_SPRUCE_TAIGA I + FIELD field_31765 GIANT_SPRUCE_TAIGA_HILLS I + FIELD field_31766 MODIFIED_GRAVELLY_MOUNTAINS I + FIELD field_31767 SHATTERED_SAVANNA I + FIELD field_31768 SHATTERED_SAVANNA_PLATEAU I + FIELD field_31769 ERODED_BADLANDS I + FIELD field_31770 MODIFIED_WOODED_BADLANDS_PLATEAU I + FIELD field_31771 MODIFIED_BADLANDS_PLATEAU I + FIELD field_31772 BAMBOO_JUNGLE I + FIELD field_31773 BAMBOO_JUNGLE_HILLS I + FIELD field_31774 OCEAN I + FIELD field_31775 PLAINS I + FIELD field_31776 DESERT I + FIELD field_31777 MOUNTAINS I + FIELD field_31778 FOREST I + FIELD field_31779 TAIGA I + FIELD field_31780 SWAMP I + FIELD field_31781 RIVER I + FIELD field_31782 FROZEN_OCEAN I + FIELD field_31783 FROZEN_RIVER I + FIELD field_31784 SNOWY_TUNDRA I + FIELD field_31785 SNOWY_MOUNTAINS I + FIELD field_31786 MUSHROOM_FIELDS I + FIELD field_31787 MUSHROOM_FIELD_SHORE I + FIELD field_31788 BEACH I + FIELD field_31789 DESERT_HILLS I + FIELD field_31790 WOODED_HILLS I + FIELD field_31791 TAIGA_HILLS I + FIELD field_31792 MOUNTAIN_EDGE I + FIELD field_31793 JUNGLE I + FIELD field_31794 JUNGLE_HILLS I + FIELD field_31795 JUNGLE_EDGE I + FIELD field_31796 DEEP_OCEAN I + FIELD field_31797 STONE_SHORE I + FIELD field_31798 SNOWY_BEACH I diff --git a/src/constants/java/net/fabricmc/yarn/constants/SetBlockStateFlags.java b/src/constants/java/net/fabricmc/yarn/constants/SetBlockStateFlags.java deleted file mode 100644 index 72bc9ff8eb..0000000000 --- a/src/constants/java/net/fabricmc/yarn/constants/SetBlockStateFlags.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * This file is free for everyone to use under the Creative Commons Zero license. - */ - -package net.fabricmc.yarn.constants; - -/** - * A few flag bits for the {@code flag} argument of {@code world.setBlockState(pos, state, flag)} - * and other related block state setting methods. - * - *

The accepted values of the {@code flag} argument is usually a bitset combination of the - * fields in this class. - * - * @see net.minecraft.world.ModifiableWorld#setBlockState(net.minecraft.util.math.BlockPos, - * net.minecraft.block.BlockState, int) - */ -public final class SetBlockStateFlags { - /** - * Propagates a change event to surrounding blocks. - */ - public static final int PROPAGATE_CHANGE = 1; - - /** - * Notifies listeners and clients who need to react when the block changes. - */ - public static final int NOTIFY_LISTENERS = 2; - - /** - * The default setBlockState behavior. Same as {@code PROPAGATE_CHANGE | NOTIFY_LISTENERS}. - */ - public static final int DEFAULT = PROPAGATE_CHANGE | NOTIFY_LISTENERS; - - /** - * Used in conjunction with {@link #NOTIFY_LISTENERS} to suppress the render pass on clients. - */ - public static final int NO_REDRAW = 4; - - /** - * Forces a synchronous redraw on clients. - */ - public static final int REDRAW_ON_MAIN_THREAD = 8; - - /** - * Bypass virtual block state changes and forces the passed state to be stored as-is. - */ - public static final int FORCE_STATE = 16; - - /** - * Prevents the previous block (container) from dropping items when destroyed. - */ - public static final int SKIP_DROPS = 32; - - /** - * Signals that the current block is being moved to a different location, usually because of a piston. - */ - public static final int MOVED = 64; - - /** - * Signals that lighting updates should be skipped. - */ - public static final int SKIP_LIGHTING_UPDATES = 128; - - private SetBlockStateFlags() { - } -} diff --git a/src/constants/java/net/fabricmc/yarn/constants/WorldEvents.java b/src/constants/java/net/fabricmc/yarn/constants/WorldEvents.java deleted file mode 100644 index 34d9a171c5..0000000000 --- a/src/constants/java/net/fabricmc/yarn/constants/WorldEvents.java +++ /dev/null @@ -1,564 +0,0 @@ -/* - * This file is free for everyone to use under the Creative Commons Zero license. - */ - -package net.fabricmc.yarn.constants; - -/** - * 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 {@link net.minecraft.network.packet.s2c.play.WorldEventS2CPacket WorldEventS2CPacket}, - * received on the client by {@link net.minecraft.client.network.ClientPlayNetworkHandler#onWorldEvent(net.minecraft.network.packet.s2c.play.WorldEventS2CPacket) ClientPlayNetworkHandler#onWorldEvent}, - * synced by {@link net.minecraft.client.world.ClientWorld#syncWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncWorldEvent} and - * {@link net.minecraft.client.world.ClientWorld#syncGlobalEvent(int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncGlobalEvent} (for regular and global events respectively), and - * finally processed by {@link net.minecraft.client.render.WorldRenderer#processWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processWorldEvent} and - * {@link net.minecraft.client.render.WorldRenderer#processGlobalEvent(int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processGlobalEvent} (for regular and global events respectively). - */ -public final class WorldEvents { - /** - * A Dispenser dispenses an item. - *
Plays the dispensing sound event. - *

Called by {@link net.minecraft.block.dispenser.BoatDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) BoatDispenserBehavior#playSound}, - * {@link net.minecraft.block.dispenser.FallibleItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) FallibleItemDispenserBehavior#playSound}, - * {@link net.minecraft.block.dispenser.ItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) ItemDispenserBehavior#playSound}, - * and {@link net.minecraft.item.MinecartItem#DISPENSER_BEHAVIOR MinecartItem#DISPENSER_BEHAVIOR} - */ - public static final int DISPENSER_DISPENSES = 1000; - - /** - * A Dispenser fails to dispense an item. - *
Plays the dispenser fail sound event. - *

Called by {@link net.minecraft.block.DispenserBlock#dispense(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) DispenserBlock#dispense}, - * {@link net.minecraft.block.DropperBlock#dispense(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) DropperBlock#dispense}, - * and {@link net.minecraft.block.dispenser.FallibleItemDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) FallibleItemDispenserBehavior#playSound} - */ - public static final int DISPENSER_FAILS = 1001; - - /** - * A Dispenser launches a projectile. - *
Plays the dispenser launch sound event. - *

Called by {@link net.minecraft.block.dispenser.ProjectileDispenserBehavior#playSound(net.minecraft.util.math.BlockPointer) ProjectileDispenserBehavior#playSound} - */ - public static final int DISPENSER_LAUNCHES_PROJECTILE = 1002; - - /** - * An Eye of Ender is launched. - *
Plays the eye of ender launching sound event. - *

Called by {@link net.minecraft.item.EnderEyeItem#use(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand) EnderEyeItem#use} - */ - public static final int EYE_OF_ENDER_LAUNCHES = 1003; - - /** - * A Firework Rocket is shot. - *
Plays the firework shoot sound event. - *

Called by {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior} - */ - public static final int FIREWORK_ROCKET_SHOOTS = 1004; - - /** - * An Iron Door is opened. - *
Plays the iron door opening sound event. - *

Called by {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} - */ - public static final int IRON_DOOR_OPENS = 1005; - - /** - * A Wooden Door is opened. - *
Plays the wooden door opening sound event. - *

Called by {@link net.minecraft.block.DoorBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) DoorBlock#onUse}, - * and {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} - */ - public static final int WOODEN_DOOR_OPENS = 1006; - - /** - * A Wooden Trapdoor is opened. - *
Plays the wooden trapdoor opening sound event. - *

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} - */ - public static final int WOODEN_TRAPDOOR_OPENS = 1007; - - /** - * A Fence Gate is opened. - *
Plays the fence gate opening sound event. - *

Called by {@link net.minecraft.block.FenceGateBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) FenceGateBlock#onUse}, - * and {@link net.minecraft.block.FenceGateBlock#neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) FenceGateBlock#neighborUpdate} - */ - public static final int FENCE_GATE_OPENS = 1008; - - /** - * A fire block or campfire is extinguished. - *
Plays the fire extinguish sound event. - *

Called by {@link net.minecraft.block.AbstractFireBlock#onBreak(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.player.PlayerEntity) AbstractFireBlock#onBreak}, - * {@link net.minecraft.entity.projectile.thrown.PotionEntity#extinguishFire(net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction) PotionEntity#extinguishFire}, - * and {@link net.minecraft.item.ShovelItem#useOnBlock(net.minecraft.item.ItemUsageContext) ShovelItem#useOnBlock} - */ - public static final int FIRE_EXTINGUISHED = 1009; - - /** - * A Music Disc is played. - *
Plays the appropriate music. - *
The Raw ID of the Music Disc item must be supplied as extra data. - *
A {@code 0} should be passed to stop music. - *

Called by {@link net.minecraft.item.MusicDiscItem#useOnBlock(net.minecraft.item.ItemUsageContext) MusicDiscItem#useOnBlock}, - * and {@link net.minecraft.block.JukeboxBlock#removeRecord(net.minecraft.world.World, net.minecraft.util.math.BlockPos) JukeboxBlock#removeRecord} - */ - public static final int MUSIC_DISC_PLAYED = 1010; - - /** - * An Iron Door is closed. - *
Plays the iron door closing sound event. - *

Called by {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} - */ - public static final int IRON_DOOR_CLOSES = 1011; - - /** - * A Wooden Door is closed. - *
Plays the wooden door closing sound event. - *

Called by {@link net.minecraft.block.DoorBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) DoorBlock#onUse}, - * and {@link net.minecraft.block.DoorBlock#playOpenCloseSound(net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) DoorBlock#playOpenCloseSound} - */ - public static final int WOODEN_DOOR_CLOSES = 1012; - - /** - * A Wooden Trapdoor is closed. - *
Plays the wooden trapdoor closing sound event. - *

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} - */ - public static final int WOODEN_TRAPDOOR_CLOSES = 1013; - - /** - * A Fence Gate is closed. - *
Plays the fence gate closing sound event. - *

Called by {@link net.minecraft.block.FenceGateBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) FenceGateBlock#onUse}, - * and {@link net.minecraft.block.FenceGateBlock#neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) FenceGateBlock#neighborUpdate} - */ - public static final int FENCE_GATE_CLOSES = 1014; - - /** - * A Ghast warns its victim. - *
Plays the ghast warn sound event. - *

Called by {@link net.minecraft.entity.mob.GhastEntity.ShootFireballGoal#tick() GhastEntity.ShootFireballGoal#tick} - */ - public static final int GHAST_WARNS = 1015; - - /** - * A Ghast shoots a fireball. - *
Plays the ghast shoot sound event. - *

Called by {@link net.minecraft.entity.mob.GhastEntity.ShootFireballGoal#tick() GhastEntity.ShootFireballGoal#tick} - */ - public static final int GHAST_SHOOTS = 1016; - - /** - * An Ender Dragon shoots a fireball. - *
Plays the ender dragon shoot sound event. - *

Called by {@link net.minecraft.entity.boss.dragon.phase.StrafePlayerPhase#serverTick() StrafePlayerPhase#serverTick} - */ - public static final int ENDER_DRAGON_SHOOTS = 1017; - - /** - * A Blaze shoots a fireball or a Fire Charge is shot by a dispenser. - *
Plays the blaze shoot sound event. - *

Called by {@link net.minecraft.entity.mob.BlazeEntity.ShootFireballGoal#tick() BlazeEntity.ShootFireballGoal#tick}, - * and {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior} - */ - public static final int BLAZE_SHOOTS = 1018; - - /** - * A Zombie attacks a Wooden Door. - *
Plays the zombie attacking wooden door sound event. - *

Called by {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick} - */ - public static final int ZOMBIE_ATTACKS_WOODEN_DOOR = 1019; - - /** - * A Zombie attacks an Iron Door. - *
Plays the zombie attacking iron door sound event. - *
Goes unused. - */ - public static final int ZOMBIE_ATTACKS_IRON_DOOR = 1020; - - /** - * A Zombie breaks a Wooden Door. - *
Plays the zombie breaking wooden door sound event. - *

Called by {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick} - */ - public static final int ZOMBIE_BREAKS_WOODEN_DOOR = 1021; - - /** - * A Wither breaks a block. - *
Plays the wither breaking block sound event. - *

Called by {@link net.minecraft.entity.boss.WitherEntity#mobTick() WitherEntity#mobTick} - */ - public static final int WITHER_BREAKS_BLOCK = 1022; - - /** - * A Wither is spawned. - *
Plays the wither spawn sound event. - *
This is a global event. - *

Called by {@link net.minecraft.entity.boss.WitherEntity#mobTick() WitherEntity#mobTick} - */ - public static final int WITHER_SPAWNS = 1023; - - /** - * A Wither shoots a wither skull. - *
Plays the wither shoot sound event. - *

Called by {@link net.minecraft.entity.boss.WitherEntity#shootSkullAt(int, double, double, double, boolean) WitherEntity#shootSkullAt} - */ - public static final int WITHER_SHOOTS = 1024; - - /** - * A Bat takes off. - *
Plays the bat take off sound event. - *

Called by {@link net.minecraft.entity.passive.BatEntity#mobTick() BatEntity#mobTick} - */ - public static final int BAT_TAKES_OFF = 1025; - - /** - * A Zombie infects a Villager. - *
Plays the zombie infect villager sound event. - *

Called by {@link net.minecraft.entity.mob.ZombieEntity#onKilledOther(net.minecraft.server.world.ServerWorld, net.minecraft.entity.LivingEntity) ZombieEntity#onKilledOther} - */ - public static final int ZOMBIE_INFECTS_VILLAGER = 1026; - - /** - * A Zombie Villager is cured. - *
Plays the zombie villager cured sound event. - *

Called by {@link net.minecraft.entity.mob.ZombieVillagerEntity#finishConversion(net.minecraft.server.world.ServerWorld) ZombieVillagerEntity#finishConversion} - */ - public static final int ZOMBIE_VILLAGER_CURED = 1027; - - /** - * An Ender Dragon dies. - *
Plays the ender dragon death sound event. - *
This is a global event. - *

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonEntity#updatePostDeath() EnderDragonEntity#updatePostDeath} - */ - public static final int ENDER_DRAGON_DIES = 1028; - - /** - * An Anvil is destroyed from damage. - *
Plays the anvil destroyed sound event. - *

Called by {@link net.minecraft.block.AnvilBlock#onDestroyedOnLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.FallingBlockEntity) AnvilBlock#onDestroyedOnLanding}, - * and {@link net.minecraft.screen.AnvilScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) AnvilScreenHandler#onTakeOutput} - */ - public static final int ANVIL_DESTROYED = 1029; - - /** - * An Anvil is used. - *
Plays the anvil used sound event. - *

Called by {@link net.minecraft.screen.AnvilScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) AnvilScreenHandler#onTakeOutput} - */ - public static final int ANVIL_USED = 1030; - - /** - * An Anvil lands after falling. - *
Plays the anvil landing sound event. - *

Called by {@link net.minecraft.block.AnvilBlock#onLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.block.BlockState, net.minecraft.entity.FallingBlockEntity) AnvilBlock#onLanding} - */ - public static final int ANVIL_LANDS = 1031; - - /** - * A Portal is travelled through. - *
Plays the portal travel sound event directly through the client's sound manager. - *

Called by {@link net.minecraft.server.network.ServerPlayerEntity#moveToWorld(net.minecraft.server.world.ServerWorld) ServerPlayerEntity#moveToWorld} - */ - public static final int TRAVEL_THROUGH_PORTAL = 1032; - - /** - * A Chorus Flower grows. - *
Plays the chorus flower growing sound event. - *

Called by {@link net.minecraft.block.ChorusFlowerBlock#grow(net.minecraft.world.World, net.minecraft.util.math.BlockPos, int) ChorusFlowerBlock#grow} - */ - public static final int CHORUS_FLOWER_GROWS = 1033; - - /** - * A Chorus Flower dies. - *
Plays the chorus flower death sound event. - *

Called by {@link net.minecraft.block.ChorusFlowerBlock#die(net.minecraft.world.World, net.minecraft.util.math.BlockPos) ChorusFlowerBlock#die} - */ - public static final int CHORUS_FLOWER_DIES = 1034; - - /** - * A Brewing Stand brews. - *
Plays the brewing stand brewing sound event. - *

Called by {@link net.minecraft.block.entity.BrewingStandBlockEntity#craft(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.util.collection.DefaultedList) BrewingStandBlockEntity#craft} - */ - public static final int BREWING_STAND_BREWS = 1035; - - /** - * An Iron Trapdoor closes. - *
Plays the iron trapdoor closing sound event. - *

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} - */ - public static final int IRON_TRAPDOOR_CLOSES = 1036; - - /** - * An Iron Trapdoor opens. - *
Plays the iron trapdoor opening sound event. - *

Called by {@link net.minecraft.block.TrapdoorBlock#playToggleSound(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.World, net.minecraft.util.math.BlockPos, boolean) TrapdoorBlock#playToggleSound} - */ - public static final int IRON_TRAPDOOR_OPENS = 1037; - - /** - * An End Portal is opened. - *
Plays the end portal spawn sound event. - *
This is a global event. - *

Called by {@link net.minecraft.item.EnderEyeItem#useOnBlock(net.minecraft.item.ItemUsageContext) EnderEyeItem#useOnBlock} - */ - public static final int END_PORTAL_OPENED = 1038; - - /** - * A Phantom bites its victim. - *
Plays the phantom bite sound event. - *

Called by {@link net.minecraft.entity.mob.PhantomEntity.SwoopMovementGoal#tick() PhantomEntity.SwoopMovementGoal#tick} - */ - public static final int PHANTOM_BITES = 1039; - - /** - * A Zombie converts into a Drowned. - *
Plays the zombie convert to drowned sound event. - *

Called by {@link net.minecraft.entity.mob.ZombieEntity#convertInWater() ZombieEntity#convertInWater} - */ - public static final int ZOMBIE_CONVERTS_TO_DROWNED = 1040; - - /** - * A Husk converts into a Zombie. - *
Plays the husk convert to zombie sound event. - *

Called by {@link net.minecraft.entity.mob.HuskEntity#convertInWater() HuskEntity#convertInWater} - */ - public static final int HUSK_CONVERTS_TO_ZOMBIE = 1041; - - /** - * A Grindstone is used. - *
Plays the grindstone used sound event. - *

Called by {@link net.minecraft.screen.GrindstoneScreenHandler GrindstoneScreenHandler} - */ - public static final int GRINDSTONE_USED = 1042; - - /** - * A page is turned in a Book on a Lectern. - *
Plays the page turn sound event. - *

Called by {@link net.minecraft.block.LecternBlock#setPowered(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) LecternBlock#setPowered} - */ - public static final int LECTERN_BOOK_PAGE_TURNED = 1043; - - /** - * A Smithing Table is used. - *
Plays the smithing table used sound event. - *

Called by {@link net.minecraft.screen.SmithingScreenHandler#onTakeOutput(net.minecraft.entity.player.PlayerEntity, net.minecraft.item.ItemStack) SmithingScreenHandler#onTakeOutput} - */ - public static final int SMITHING_TABLE_USED = 1044; - - /** - * Pointed Dripstone lands after falling. - *
Plays the pointed dripstone landing sound event. - *

Called by {@link net.minecraft.block.PointedDripstoneBlock#onDestroyedOnLanding(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.FallingBlockEntity) PointedDripstoneBlock#onDestroyedOnLanding} - */ - public static final int POINTED_DRIPSTONE_LANDS = 1045; - - /** - * Pointed Dripstone drips Lava into a Cauldron. - *
Plays the pointed dripstone dripping lava into cauldron sound event. - *

Called by {@link net.minecraft.block.CauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) CauldronBlock#fillFromDripstone} - */ - public static final int POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON = 1046; - - /** - * Pointed Dripstone drips Water into a Cauldron. - *
Plays the pointed dripstone dripping water into cauldron sound event. - *

Called by {@link net.minecraft.block.CauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) CauldronBlock#fillFromDripstone}, - * and {@link net.minecraft.block.LeveledCauldronBlock#fillFromDripstone(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.fluid.Fluid) LeveledCauldronBlock#fillFromDripstone} - */ - public static final int POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON = 1047; - - /** - * A Skeleton converts into a Stray. - *
Plays the skeleton convert to stray sound event. - *

Called by {@link net.minecraft.entity.mob.SkeletonEntity#convertToStray() SkeletonEntity#convertToStray} - */ - public static final int SKELETON_CONVERTS_TO_STRAY = 1048; - - /** - * An item is composted in a Composter. - *
Plays the appropriate composting sound event and spawns composter particles. - *

A {@code 1} should be passed as extra data if the use of the composter added to the level of compost inside. - *

Called by {@link net.minecraft.block.ComposterBlock#onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) ComposterBlock#onUse}, - * {@link net.minecraft.block.ComposterBlock.ComposterInventory#markDirty() ComposterBlock.ComposterInventory#markDirty}, - * and {@link net.minecraft.entity.ai.brain.task.FarmerWorkTask#syncComposterEvent(net.minecraft.server.world.ServerWorld, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) FarmerWorkTask#syncComposterEvent} - */ - public static final int COMPOSTER_USED = 1500; - - /** - * Lava is extinguished. - *
Plays the lava extinguish sound event and spawns large smoke particles. - *

Called by {@link net.minecraft.block.FluidBlock#playExtinguishSound(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos) FluidBlock#playExtinguishSound}, - * and {@link net.minecraft.fluid.LavaFluid#playExtinguishEvent(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos) LavaFluid#playExtinguishEvent} - */ - public static final int LAVA_EXTINGUISHED = 1501; - - /** - * A Redstone Torch burns out. - *
Plays the redstone torch burn out sound event and spawns smoke particles. - *

Called by {@link net.minecraft.block.RedstoneTorchBlock#scheduledTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) RedstoneTorchBlock#scheduledTick} - */ - public static final int REDSTONE_TORCH_BURNS_OUT = 1502; - - /** - * 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 {@link net.minecraft.item.EnderEyeItem#useOnBlock(net.minecraft.item.ItemUsageContext) EnderEyeItem#useOnBlock} - */ - public static final int END_PORTAL_FRAME_FILLED = 1503; - - /** - * Pointed Dripstone drips fluid particles. - *
Spawns dripping fluid particles. - *

Called by {@link net.minecraft.block.PointedDripstoneBlock#dripTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, float) PointedDripstoneBlock#dripTick} - */ - public static final int POINTED_DRIPSTONE_DRIPS = 1504; - - /** - * A Dispenser is activated. - *
Spawns smoke particles. - *
The ordinal direction the dispenser is facing must be supplied as extra data. - *

Called by {@link net.minecraft.block.dispenser.ItemDispenserBehavior#spawnParticles(net.minecraft.util.math.BlockPointer, net.minecraft.util.math.Direction) ItemDispenserBehavior#spawnParticles} - */ - public static final int DISPENSER_ACTIVATED = 2000; - - /** - * A 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 {@link net.minecraft.block.Block#spawnBreakParticles(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) Block#spawnBreakParticles}, - * {@link net.minecraft.block.TallPlantBlock#onBreakInCreative(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.player.PlayerEntity) TallPlantBlock#onBreakInCreative}, - * {@link net.minecraft.entity.ai.goal.BreakDoorGoal#tick() BreakDoorGoal#tick}, - * {@link net.minecraft.block.CarvedPumpkinBlock#trySpawnEntity(net.minecraft.world.World, net.minecraft.util.math.BlockPos) CarvedPumpkinBlock#trySpawnEntity}, - * {@link net.minecraft.entity.ai.goal.EatGrassGoal#tick() EatGrassGoal#tick}, - * {@link net.minecraft.entity.passive.FoxEntity#tick() FoxEntity#tick}, - * {@link net.minecraft.block.PowderSnowBlock#tryDrainFluid(net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) PowderSnowBlock#tryDrainFluid}, - * {@link net.minecraft.entity.passive.RabbitEntity.EatCarrotCropGoal#tick() RabbitEntity.EatCarrotCropGoal#tick}, - * {@link net.minecraft.block.SpongeBlock#update(net.minecraft.world.World, net.minecraft.util.math.BlockPos) SpongeBlock#update}, - * {@link net.minecraft.block.TurtleEggBlock#breakEgg(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) TurtleEggBlock#breakEgg}, - * {@link net.minecraft.block.TurtleEggBlock#randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) TurtleEggBlock#randomTick}, - * {@link net.minecraft.entity.passive.TurtleEntity#tickMovement() TurtleEntity#tickMovement}, - * {@link net.minecraft.block.WitherSkullBlock#onPlaced(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.entity.SkullBlockEntity) WitherSkullBlock#onPlaced}, - * and {@link net.minecraft.world.World#breakBlock(net.minecraft.util.math.BlockPos, boolean, net.minecraft.entity.Entity, int) World#breakBlock} - */ - public static final int BLOCK_BROKEN = 2001; - - /** - * 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 {@link WorldEvents#INSTANT_SPLASH_POTION_SPLASHED}. - *

Called by {@link net.minecraft.entity.projectile.thrown.ExperienceBottleEntity#onCollision(net.minecraft.util.hit.HitResult) ExperienceBottleEntity#onCollision}, - * and {@link net.minecraft.entity.projectile.thrown.PotionEntity#onCollision(net.minecraft.util.hit.HitResult) PotionEntity#onCollision} - */ - public static final int SPLASH_POTION_SPLASHED = 2002; - - /** - * A thrown Eye of Ender breaks. - *
Spawns several particles. - *

Called by {@link net.minecraft.entity.EyeOfEnderEntity#tick() EyeOfEnderEntity#tick} - */ - public static final int EYE_OF_ENDER_BREAKS = 2003; - - /** - * A Spawner spawns mobs. - *
Spawns smoke and flame particles. - *

Called by {@link net.minecraft.world.MobSpawnerLogic#serverTick(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos) MobSpawnerLogic#serverTick} - */ - public static final int SPAWNER_SPAWNS = 2004; - - /** - * A plant is fertilized with Bone Meal or by a Bee, or a Turtle Egg is placed - *
Spawns happy villager particles. - *

Called by {@link net.minecraft.entity.passive.BeeEntity.GrowCropsGoal#tick() BeeEntity.GrowCropsGoal#tick}, - * {@link net.minecraft.item.BoneMealItem#useOnBlock(net.minecraft.item.ItemUsageContext) BoneMealItem#useOnBlock}, - * {@link net.minecraft.entity.ai.brain.task.BoneMealTask#keepRunning(net.minecraft.server.world.ServerWorld, net.minecraft.entity.passive.VillagerEntity, long) BoneMealTask#keepRunning}, - * {@link net.minecraft.block.dispenser.DispenserBehavior DispenserBehavior}, - * and {@link net.minecraft.block.TurtleEggBlock#onBlockAdded(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) TurtleEggBlock#onBlockAdded} - */ - public static final int PLANT_FERTILIZED = 2005; - - /** - * A Dragon Breath Cloud spawns. - *
Plays the dragon fireball explode sound event and spawns dragon breath particles. - *

Called by {@link net.minecraft.entity.projectile.DragonFireballEntity#onCollision(net.minecraft.util.hit.HitResult) DragonFireballEntity#onCollision} - */ - public static final int DRAGON_BREATH_CLOUD_SPAWNS = 2006; - - /** - * 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 {@link WorldEvents#SPLASH_POTION_SPLASHED}. - *

Called by {@link net.minecraft.entity.projectile.thrown.PotionEntity#onCollision(net.minecraft.util.hit.HitResult) PotionEntity#onCollision} - */ - public static final int INSTANT_SPLASH_POTION_SPLASHED = 2007; - - /** - * An Ender Dragon breaks a block. - *
Spawns an explosion particle. - *

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonEntity#destroyBlocks(net.minecraft.util.math.Box) EnderDragonEntity#destroyBlocks} - */ - public static final int ENDER_DRAGON_BREAKS_BLOCK = 2008; - - /** - * A Wet Sponge dries out in a hot dimension. - *
Spawns cloud particles. - *

Called by {@link net.minecraft.block.WetSpongeBlock#onBlockAdded(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) WetSpongeBlock#onBlockAdded} - */ - public static final int WET_SPONGE_DRIES_OUT = 2009; - - /** - * An End Gateway spawns. - *
Plays the end gateway spawn sound event and spawns an explosion emitter particle. - *

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonFight#generateEndGateway(net.minecraft.util.math.BlockPos) EnderDragonFight#generateEndGateway} - */ - public static final int END_GATEWAY_SPAWNS = 3000; - - /** - * The Ender Dragon is being resurrected. - *
Plays the ender dragon growl sound event. - *

Called by {@link net.minecraft.entity.boss.dragon.EnderDragonSpawnState#run(net.minecraft.server.world.ServerWorld, net.minecraft.entity.boss.dragon.EnderDragonFight, java.util.List, int, net.minecraft.util.math.BlockPos) EnderDragonSpawnState#run} - */ - public static final int ENDER_DRAGON_RESURRECTED = 3001; - - /** - * 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 {@code -1} should be passed if the event is called by a lightning entity itself. - *

Called by {@link net.minecraft.block.LightningRodBlock#setPowered(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos) LightningRodBlock#setPowered}, - * and {@link net.minecraft.entity.LightningEntity#cleanOxidizationAround(net.minecraft.world.World, net.minecraft.util.math.BlockPos) LightningEntity#cleanOxidizationAround} - */ - public static final int ELECTRICITY_SPARKS = 3002; - - /** - * A block is waxed. - *
Plays the block waxing sound event and spawns waxing particles. - *

Called by {@link net.minecraft.item.HoneycombItem#useOnBlock(net.minecraft.item.ItemUsageContext) HoneycombItem#useOnBlock} - */ - public static final int BLOCK_WAXED = 3003; - - /** - * Wax is removed from a block. - *
Spawns wax removal particles. - *

Called by {@link net.minecraft.item.AxeItem#useOnBlock(net.minecraft.item.ItemUsageContext) AxeItem#useOnBlock} - */ - public static final int WAX_REMOVED = 3004; - - /** - * A block is scraped. - *
Spawns scraping particles. - *

Called by {@link net.minecraft.item.AxeItem#useOnBlock(net.minecraft.item.ItemUsageContext) AxeItem#useOnBlock} - */ - public static final int BLOCK_SCRAPED = 3005; - - private WorldEvents() { - } -} diff --git a/unpick-definitions/set_block_state_flags.unpick b/unpick-definitions/set_block_state_flags.unpick index 8e90003478..72fb969e3b 100644 --- a/unpick-definitions/set_block_state_flags.unpick +++ b/unpick-definitions/set_block_state_flags.unpick @@ -1,14 +1,14 @@ v2 -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags DEFAULT -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags PROPAGATE_CHANGE -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags NOTIFY_LISTENERS -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags NO_REDRAW -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags REDRAW_ON_MAIN_THREAD -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags FORCE_STATE -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags SKIP_DROPS -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags MOVED -flag set_block_state_flags net/fabricmc/yarn/constants/SetBlockStateFlags SKIP_LIGHTING_UPDATES +flag set_block_state_flags net/minecraft/block/Block DEFAULT_SET_BLOCK_STATE_FLAG +flag set_block_state_flags net/minecraft/block/Block PROPAGATE_CHANGE +flag set_block_state_flags net/minecraft/block/Block NOTIFY_LISTENERS +flag set_block_state_flags net/minecraft/block/Block NO_REDRAW +flag set_block_state_flags net/minecraft/block/Block REDRAW_ON_MAIN_THREAD +flag set_block_state_flags net/minecraft/block/Block FORCE_STATE +flag set_block_state_flags net/minecraft/block/Block SKIP_DROPS +flag set_block_state_flags net/minecraft/block/Block MOVED +flag set_block_state_flags net/minecraft/block/Block SKIP_LIGHTING_UPDATES target_method net/minecraft/world/ModifiableWorld setBlockState (Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z param 2 set_block_state_flags diff --git a/unpick-definitions/world_events.unpick b/unpick-definitions/world_events.unpick index a46b5ec4e5..f319d4e6b0 100644 --- a/unpick-definitions/world_events.unpick +++ b/unpick-definitions/world_events.unpick @@ -1,75 +1,75 @@ v2 -constant world_events net/fabricmc/yarn/constants/WorldEvents DISPENSER_DISPENSES -constant world_events net/fabricmc/yarn/constants/WorldEvents DISPENSER_FAILS -constant world_events net/fabricmc/yarn/constants/WorldEvents DISPENSER_LAUNCHES_PROJECTILE -constant world_events net/fabricmc/yarn/constants/WorldEvents EYE_OF_ENDER_LAUNCHES -constant world_events net/fabricmc/yarn/constants/WorldEvents FIREWORK_ROCKET_SHOOTS -constant world_events net/fabricmc/yarn/constants/WorldEvents IRON_DOOR_OPENS -constant world_events net/fabricmc/yarn/constants/WorldEvents WOODEN_DOOR_OPENS -constant world_events net/fabricmc/yarn/constants/WorldEvents WOODEN_TRAPDOOR_OPENS -constant world_events net/fabricmc/yarn/constants/WorldEvents FENCE_GATE_OPENS -constant world_events net/fabricmc/yarn/constants/WorldEvents FIRE_EXTINGUISHED -constant world_events net/fabricmc/yarn/constants/WorldEvents MUSIC_DISC_PLAYED -constant world_events net/fabricmc/yarn/constants/WorldEvents IRON_DOOR_CLOSES -constant world_events net/fabricmc/yarn/constants/WorldEvents WOODEN_DOOR_CLOSES -constant world_events net/fabricmc/yarn/constants/WorldEvents WOODEN_TRAPDOOR_CLOSES -constant world_events net/fabricmc/yarn/constants/WorldEvents FENCE_GATE_CLOSES -constant world_events net/fabricmc/yarn/constants/WorldEvents GHAST_WARNS -constant world_events net/fabricmc/yarn/constants/WorldEvents GHAST_SHOOTS -constant world_events net/fabricmc/yarn/constants/WorldEvents ENDER_DRAGON_SHOOTS -constant world_events net/fabricmc/yarn/constants/WorldEvents BLAZE_SHOOTS -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_ATTACKS_WOODEN_DOOR -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_ATTACKS_IRON_DOOR -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_BREAKS_WOODEN_DOOR -constant world_events net/fabricmc/yarn/constants/WorldEvents WITHER_BREAKS_BLOCK -constant world_events net/fabricmc/yarn/constants/WorldEvents WITHER_SPAWNS -constant world_events net/fabricmc/yarn/constants/WorldEvents WITHER_SHOOTS -constant world_events net/fabricmc/yarn/constants/WorldEvents BAT_TAKES_OFF -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_INFECTS_VILLAGER -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_VILLAGER_CURED -constant world_events net/fabricmc/yarn/constants/WorldEvents ENDER_DRAGON_DIES -constant world_events net/fabricmc/yarn/constants/WorldEvents ANVIL_DESTROYED -constant world_events net/fabricmc/yarn/constants/WorldEvents ANVIL_USED -constant world_events net/fabricmc/yarn/constants/WorldEvents ANVIL_LANDS -constant world_events net/fabricmc/yarn/constants/WorldEvents TRAVEL_THROUGH_PORTAL -constant world_events net/fabricmc/yarn/constants/WorldEvents CHORUS_FLOWER_GROWS -constant world_events net/fabricmc/yarn/constants/WorldEvents CHORUS_FLOWER_DIES -constant world_events net/fabricmc/yarn/constants/WorldEvents BREWING_STAND_BREWS -constant world_events net/fabricmc/yarn/constants/WorldEvents IRON_TRAPDOOR_CLOSES -constant world_events net/fabricmc/yarn/constants/WorldEvents IRON_TRAPDOOR_OPENS -constant world_events net/fabricmc/yarn/constants/WorldEvents END_PORTAL_OPENED -constant world_events net/fabricmc/yarn/constants/WorldEvents PHANTOM_BITES -constant world_events net/fabricmc/yarn/constants/WorldEvents ZOMBIE_CONVERTS_TO_DROWNED -constant world_events net/fabricmc/yarn/constants/WorldEvents HUSK_CONVERTS_TO_ZOMBIE -constant world_events net/fabricmc/yarn/constants/WorldEvents GRINDSTONE_USED -constant world_events net/fabricmc/yarn/constants/WorldEvents LECTERN_BOOK_PAGE_TURNED -constant world_events net/fabricmc/yarn/constants/WorldEvents SMITHING_TABLE_USED -constant world_events net/fabricmc/yarn/constants/WorldEvents POINTED_DRIPSTONE_LANDS -constant world_events net/fabricmc/yarn/constants/WorldEvents POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON -constant world_events net/fabricmc/yarn/constants/WorldEvents POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON -constant world_events net/fabricmc/yarn/constants/WorldEvents SKELETON_CONVERTS_TO_STRAY -constant world_events net/fabricmc/yarn/constants/WorldEvents COMPOSTER_USED -constant world_events net/fabricmc/yarn/constants/WorldEvents LAVA_EXTINGUISHED -constant world_events net/fabricmc/yarn/constants/WorldEvents REDSTONE_TORCH_BURNS_OUT -constant world_events net/fabricmc/yarn/constants/WorldEvents END_PORTAL_FRAME_FILLED -constant world_events net/fabricmc/yarn/constants/WorldEvents POINTED_DRIPSTONE_DRIPS -constant world_events net/fabricmc/yarn/constants/WorldEvents DISPENSER_ACTIVATED -constant world_events net/fabricmc/yarn/constants/WorldEvents BLOCK_BROKEN -constant world_events net/fabricmc/yarn/constants/WorldEvents SPLASH_POTION_SPLASHED -constant world_events net/fabricmc/yarn/constants/WorldEvents EYE_OF_ENDER_BREAKS -constant world_events net/fabricmc/yarn/constants/WorldEvents SPAWNER_FLAMES -constant world_events net/fabricmc/yarn/constants/WorldEvents PLANT_FERTILIZED -constant world_events net/fabricmc/yarn/constants/WorldEvents DRAGON_BREATH_CLOUD_SPAWNS -constant world_events net/fabricmc/yarn/constants/WorldEvents INSTANT_SPLASH_POTION_SPLASHED -constant world_events net/fabricmc/yarn/constants/WorldEvents ENDER_DRAGON_BREAKS_BLOCK -constant world_events net/fabricmc/yarn/constants/WorldEvents WET_SPONGE_DRIES_OUT -constant world_events net/fabricmc/yarn/constants/WorldEvents END_GATEWAY_SPAWNS -constant world_events net/fabricmc/yarn/constants/WorldEvents ENDER_DRAGON_RESURRECTED -constant world_events net/fabricmc/yarn/constants/WorldEvents ELECTRICITY_SPARKS -constant world_events net/fabricmc/yarn/constants/WorldEvents BLOCK_WAXED -constant world_events net/fabricmc/yarn/constants/WorldEvents WAX_REMOVED -constant world_events net/fabricmc/yarn/constants/WorldEvents BLOCK_SCRAPED +constant world_events net/minecraft/world/WorldEvents DISPENSER_DISPENSES +constant world_events net/minecraft/world/WorldEvents DISPENSER_FAILS +constant world_events net/minecraft/world/WorldEvents DISPENSER_LAUNCHES_PROJECTILE +constant world_events net/minecraft/world/WorldEvents EYE_OF_ENDER_LAUNCHES +constant world_events net/minecraft/world/WorldEvents FIREWORK_ROCKET_SHOOTS +constant world_events net/minecraft/world/WorldEvents IRON_DOOR_OPENS +constant world_events net/minecraft/world/WorldEvents WOODEN_DOOR_OPENS +constant world_events net/minecraft/world/WorldEvents WOODEN_TRAPDOOR_OPENS +constant world_events net/minecraft/world/WorldEvents FENCE_GATE_OPENS +constant world_events net/minecraft/world/WorldEvents FIRE_EXTINGUISHED +constant world_events net/minecraft/world/WorldEvents MUSIC_DISC_PLAYED +constant world_events net/minecraft/world/WorldEvents IRON_DOOR_CLOSES +constant world_events net/minecraft/world/WorldEvents WOODEN_DOOR_CLOSES +constant world_events net/minecraft/world/WorldEvents WOODEN_TRAPDOOR_CLOSES +constant world_events net/minecraft/world/WorldEvents FENCE_GATE_CLOSES +constant world_events net/minecraft/world/WorldEvents GHAST_WARNS +constant world_events net/minecraft/world/WorldEvents GHAST_SHOOTS +constant world_events net/minecraft/world/WorldEvents ENDER_DRAGON_SHOOTS +constant world_events net/minecraft/world/WorldEvents BLAZE_SHOOTS +constant world_events net/minecraft/world/WorldEvents ZOMBIE_ATTACKS_WOODEN_DOOR +constant world_events net/minecraft/world/WorldEvents ZOMBIE_ATTACKS_IRON_DOOR +constant world_events net/minecraft/world/WorldEvents ZOMBIE_BREAKS_WOODEN_DOOR +constant world_events net/minecraft/world/WorldEvents WITHER_BREAKS_BLOCK +constant world_events net/minecraft/world/WorldEvents WITHER_SPAWNS +constant world_events net/minecraft/world/WorldEvents WITHER_SHOOTS +constant world_events net/minecraft/world/WorldEvents BAT_TAKES_OFF +constant world_events net/minecraft/world/WorldEvents ZOMBIE_INFECTS_VILLAGER +constant world_events net/minecraft/world/WorldEvents ZOMBIE_VILLAGER_CURED +constant world_events net/minecraft/world/WorldEvents ENDER_DRAGON_DIES +constant world_events net/minecraft/world/WorldEvents ANVIL_DESTROYED +constant world_events net/minecraft/world/WorldEvents ANVIL_USED +constant world_events net/minecraft/world/WorldEvents ANVIL_LANDS +constant world_events net/minecraft/world/WorldEvents TRAVEL_THROUGH_PORTAL +constant world_events net/minecraft/world/WorldEvents CHORUS_FLOWER_GROWS +constant world_events net/minecraft/world/WorldEvents CHORUS_FLOWER_DIES +constant world_events net/minecraft/world/WorldEvents BREWING_STAND_BREWS +constant world_events net/minecraft/world/WorldEvents IRON_TRAPDOOR_CLOSES +constant world_events net/minecraft/world/WorldEvents IRON_TRAPDOOR_OPENS +constant world_events net/minecraft/world/WorldEvents END_PORTAL_OPENED +constant world_events net/minecraft/world/WorldEvents PHANTOM_BITES +constant world_events net/minecraft/world/WorldEvents ZOMBIE_CONVERTS_TO_DROWNED +constant world_events net/minecraft/world/WorldEvents HUSK_CONVERTS_TO_ZOMBIE +constant world_events net/minecraft/world/WorldEvents GRINDSTONE_USED +constant world_events net/minecraft/world/WorldEvents LECTERN_BOOK_PAGE_TURNED +constant world_events net/minecraft/world/WorldEvents SMITHING_TABLE_USED +constant world_events net/minecraft/world/WorldEvents POINTED_DRIPSTONE_LANDS +constant world_events net/minecraft/world/WorldEvents POINTED_DRIPSTONE_DRIPS_LAVA_INTO_CAULDRON +constant world_events net/minecraft/world/WorldEvents POINTED_DRIPSTONE_DRIPS_WATER_INTO_CAULDRON +constant world_events net/minecraft/world/WorldEvents SKELETON_CONVERTS_TO_STRAY +constant world_events net/minecraft/world/WorldEvents COMPOSTER_USED +constant world_events net/minecraft/world/WorldEvents LAVA_EXTINGUISHED +constant world_events net/minecraft/world/WorldEvents REDSTONE_TORCH_BURNS_OUT +constant world_events net/minecraft/world/WorldEvents END_PORTAL_FRAME_FILLED +constant world_events net/minecraft/world/WorldEvents POINTED_DRIPSTONE_DRIPS +constant world_events net/minecraft/world/WorldEvents DISPENSER_ACTIVATED +constant world_events net/minecraft/world/WorldEvents BLOCK_BROKEN +constant world_events net/minecraft/world/WorldEvents SPLASH_POTION_SPLASHED +constant world_events net/minecraft/world/WorldEvents EYE_OF_ENDER_BREAKS +constant world_events net/minecraft/world/WorldEvents SPAWNER_FLAMES +constant world_events net/minecraft/world/WorldEvents PLANT_FERTILIZED +constant world_events net/minecraft/world/WorldEvents DRAGON_BREATH_CLOUD_SPAWNS +constant world_events net/minecraft/world/WorldEvents INSTANT_SPLASH_POTION_SPLASHED +constant world_events net/minecraft/world/WorldEvents ENDER_DRAGON_BREAKS_BLOCK +constant world_events net/minecraft/world/WorldEvents WET_SPONGE_DRIES_OUT +constant world_events net/minecraft/world/WorldEvents END_GATEWAY_SPAWNS +constant world_events net/minecraft/world/WorldEvents ENDER_DRAGON_RESURRECTED +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 target_method net/minecraft/world/WorldAccess syncWorldEvent (Lnet/minecraft/entity/player/PlayerEntity;ILnet/minecraft/util/math/BlockPos;I)V param 1 world_events