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#breakBlock()
The following examples show how to use
net.minecraft.world.World#breakBlock() .
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: CavernousVineBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
@Override public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos pos_2, boolean boolean_1) { super.neighborUpdate(state, world, pos, block, pos_2, boolean_1); if (!canPlaceAt(state, world, pos)) { world.breakBlock(pos, false); } }
Example 2
Source File: BasicSolarPanelBlock.java From Galacticraft-Rewoven with MIT License | 5 votes |
void onPartDestroyed(World world, BlockState partState, BlockPos partPos, BlockState baseState, BlockPos basePos, boolean dropBase) { dropInventory(world, basePos); world.breakBlock(basePos, dropBase); for (BlockPos otherPart : getOtherParts(baseState, basePos)) { if (!world.getBlockState(otherPart).isAir()) { world.setBlockState(otherPart, Blocks.AIR.getDefaultState(), 3); } } }