Available Methods
- getTileEntity ( )
- getBlockState ( )
- setBlockState ( )
- getBlock ( )
- setBlockToAir ( )
- getBlockMetadata ( )
- playSound ( )
- isAirBlock ( )
- setBlock ( )
- spawnEntityInWorld ( )
- setBlockMetadataWithNotify ( )
- spawnEntity ( )
- getTotalWorldTime ( )
- spawnParticle ( )
- isBlockLoaded ( )
- getEntitiesWithinAABB ( )
- removeTileEntity ( )
- scheduleBlockUpdate ( )
- getEntitiesWithinAABBExcludingEntity ( )
- playSoundEffect ( )
- getEntityByID ( )
- getLightFromNeighbors ( )
- getChunkProvider ( )
- isBlockModifiable ( )
- getBlockTileEntity ( )
- markBlockForUpdate ( )
- getChunkFromBlockCoords ( )
- getBlockId ( )
- updateComparatorOutputLevel ( )
- destroyBlock ( )
- isAreaLoaded ( )
- scheduleUpdate ( )
- isBlockPowered ( )
- getBiome ( )
- notifyNeighborsOfStateChange ( )
- getActualHeight ( )
- setTileEntity ( )
- getHeight ( )
- getWorld ( )
- notifyBlocksOfNeighborChange ( )
- getChunkFromChunkCoords ( )
- addParticle ( )
- checkNoEntityCollision ( )
- getChunk ( )
- func_147480_a ( )
- loadItemData ( )
- getBlockEntity ( )
- playSoundAtEntity ( )
- doesBlockHaveSolidTopSurface ( )
- getEntitiesInAABBexcluding ( )
- isDaytime ( )
- neighborChanged ( )
- createExplosion ( )
- isBlockIndirectlyGettingPowered ( )
- removeEntity ( )
- rayTraceBlocks ( )
- breakBlock ( )
- checkLight ( )
- getMinecraftServer ( )
- removeBlockEntity ( )
- getTopSolidOrLiquidBlock ( )
- getEntities ( )
- getWorldInfo ( )
- containsAnyLiquid ( )
- playEvent ( )
- addWeatherEffect ( )
- getCelestialAngleRadians ( )
- getFluidState ( )
- func_147453_f ( )
- checkChunksExist ( )
- notifyBlockUpdate ( )
- addImportantParticle ( )
- newExplosion ( )
- isReceivingRedstonePower ( )
- getBlockLightValue ( )
- getBiomeGenForCoords ( )
- setItemData ( )
Related Classes
- java.util.Iterator
- java.util.Random
- java.util.Optional
- javax.annotation.Nullable
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- net.minecraft.item.ItemStack
- net.minecraft.block.Block
- net.minecraft.client.Minecraft
- net.minecraft.item.Item
- net.minecraft.entity.Entity
- net.minecraft.entity.player.EntityPlayer
- net.minecraft.util.ResourceLocation
- net.minecraft.nbt.NBTTagCompound
- net.minecraft.tileentity.TileEntity
- net.minecraft.init.Blocks
- net.minecraft.block.material.Material
- net.minecraft.entity.EntityLivingBase
- net.minecraft.entity.player.EntityPlayerMP
- net.minecraft.init.Items
- net.minecraft.util.math.BlockPos
- net.minecraft.entity.item.EntityItem
- net.minecraft.world.chunk.Chunk
- net.minecraft.inventory.IInventory
- net.minecraftforge.fml.relauncher.Side
Java Code Examples for net.minecraft.world.World#addImportantParticle()
The following examples show how to use
net.minecraft.world.World#addImportantParticle() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WitchWaterBubbleColumnBlock.java From the-hallow with MIT License | 6 votes |
@Override @Environment(EnvType.CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random rand) { double x = pos.getX(); double y = pos.getY(); double z = pos.getZ(); if (state.get(DRAG)) { world.addImportantParticle(ParticleTypes.CURRENT_DOWN, x + 0.5D, y + 0.8D, z, 0.0D, 0.0D, 0.0D); if (rand.nextInt(200) == 0) { world.playSound(x, y, z, SoundEvents.BLOCK_BUBBLE_COLUMN_WHIRLPOOL_AMBIENT, SoundCategory.BLOCKS, 0.2F + rand.nextFloat() * 0.2F, 0.9F + rand.nextFloat() * 0.15F, false); } } else { world.addImportantParticle(ParticleTypes.BUBBLE_COLUMN_UP, x + 0.5D, y, z + 0.5D, 0.0D, 0.04D, 0.0D); world.addImportantParticle(ParticleTypes.BUBBLE_COLUMN_UP, x + (double) rand.nextFloat(), y + (double) rand.nextFloat(), z + (double) rand.nextFloat(), 0.0D, 0.04D, 0.0D); if (rand.nextInt(200) == 0) { world.playSound(x, y, z, SoundEvents.BLOCK_BUBBLE_COLUMN_UPWARDS_AMBIENT, SoundCategory.BLOCKS, 0.2F + rand.nextFloat() * 0.2F, 0.9F + rand.nextFloat() * 0.15F, false); } } }
Example 2
Source File: VaporSpoutBlock.java From Galacticraft-Rewoven with MIT License | 4 votes |
public void spawnSmokeParticle(World world_1, BlockPos blockPos_1) { Random random_1 = world_1.getRandom(); world_1.addImportantParticle(ParticleTypes.CAMPFIRE_COSY_SMOKE, true, (double) blockPos_1.getX() + 0.5D + random_1.nextDouble() / 3.0D * (double) (random_1.nextBoolean() ? 1 : -1), (double) blockPos_1.getY() + random_1.nextDouble() + random_1.nextDouble(), (double) blockPos_1.getZ() + 0.5D + random_1.nextDouble() / 3.0D * (double) (random_1.nextBoolean() ? 1 : -1), 0.0D, 0.07D, 0.0D); }