public class LightningBomb
extends org.cyclops.cyclopscore.config.configurable.ConfigurableBlock
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
PRIMED |
eConfig, hasGui, isInventoryBlock, pass, propertyManagerBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, displayOnCreativeTab, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
LightningBomb(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDropFromExplosion(net.minecraft.world.Explosion explosion) |
static LightningBomb |
getInstance()
Get the unique instance.
|
void |
neighborChanged(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.Block neighbour) |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack heldItem,
net.minecraft.util.EnumFacing side,
float coordX,
float coordY,
float coordZ) |
void |
onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState) |
void |
onBlockDestroyedByExplosion(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.world.Explosion explosion) |
void |
onBlockDestroyedByPlayer(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState) |
void |
onEntityWalk(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.Entity entity) |
void |
primeBomb(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.EntityLivingBase placer)
Spawns the primed bomb and plays the fuse sound.
|
int |
quantityDropped(java.util.Random random) |
createBlockState, createDelegatedBlockState, createDynamicModel, getBlockColorHandler, getConfig, getMetaFromState, getStateFromMeta, hasDynamicModel, hasGui, onBlockPlaced, onModelBakeEventaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSoundType, getStateById, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullCube, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isOpaqueCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockClicked, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick, withMirror, withRotationpublic LightningBomb(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.BlockConfig> eConfig)
public static LightningBomb getInstance()
public void onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState)
onBlockAdded in class net.minecraft.block.Blockpublic void neighborChanged(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.Block neighbour)
neighborChanged in class net.minecraft.block.Blockpublic void onBlockDestroyedByExplosion(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.world.Explosion explosion)
onBlockDestroyedByExplosion in class net.minecraft.block.Blockpublic void onBlockDestroyedByPlayer(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState)
onBlockDestroyedByPlayer in class net.minecraft.block.Blockpublic void primeBomb(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.EntityLivingBase placer)
world - The world.blockPos - The position.blockState - The state.placer - The entity that primed the bomb.public int quantityDropped(java.util.Random random)
quantityDropped in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack heldItem,
net.minecraft.util.EnumFacing side,
float coordX,
float coordY,
float coordZ)
onBlockActivated in class net.minecraft.block.Blockpublic void onEntityWalk(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.Entity entity)
onEntityWalk in class net.minecraft.block.Blockpublic boolean canDropFromExplosion(net.minecraft.world.Explosion explosion)
canDropFromExplosion in class net.minecraft.block.Block