public abstract class ConfigurableBlockWithInnerBlocks
extends org.cyclops.cyclopscore.config.configurable.ConfigurableBlock
implements org.cyclops.cyclopscore.item.IInformationProvider
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.state.IBlockState[] |
INNER_BLOCKS |
eConfig, hasGui, isInventoryBlock, passBLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, capturedDrops, captureDrops, delegate, enableStats, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, RANDOM, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness| Constructor and Description |
|---|
ConfigurableBlockWithInnerBlocks(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig eConfig,
net.minecraft.block.material.Material material)
Make a new blockState instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addHitEffects(net.minecraft.world.World worldObj,
net.minecraft.util.MovingObjectPosition target,
net.minecraft.client.particle.EffectRenderer effectRenderer) |
boolean |
canHarvestBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player) |
int |
colorMultiplier(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
int renderPass) |
net.minecraft.client.resources.model.IBakedModel |
createDynamicModel() |
protected net.minecraft.item.ItemStack |
createStackedBlock(net.minecraft.block.state.IBlockState blockState) |
int |
damageDropped(net.minecraft.block.state.IBlockState blockState) |
net.minecraft.block.state.IBlockState |
getBlockFromMeta(int blockMeta)
Get the Block from the given (inner) blockState metadata
|
net.minecraft.block.state.IBlockState |
getBlockFromState(net.minecraft.block.state.IBlockState blockState)
Get the Block from the given (inner) blockState metadata
|
float |
getBlockHardness(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack) |
int |
getInnerBlocks()
Get the amount of innerblocks
|
net.minecraft.item.Item |
getItemDropped(net.minecraft.block.state.IBlockState blockState,
java.util.Random random,
int zero) |
int |
getMetadataFromBlock(net.minecraft.block.Block block)
Get the metadata for the given (inner) blockState id
|
protected abstract net.minecraft.block.properties.PropertyInteger |
getMetaProperty() |
float |
getPlayerRelativeBlockHardness(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos) |
int |
getRenderColor(net.minecraft.block.state.IBlockState blockState) |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list) |
boolean |
hasDynamicModel() |
protected abstract net.minecraft.block.state.IBlockState[] |
makeInnerBlockList()
This should be implemented and return a list of innerblocks, they all must refer to
non-null blockState instanced to work correctly.
|
void |
provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
createBlockState, createDelegatedBlockState, getConfig, getMetaFromState, getStateFromMeta, hasGui, onBlockPlaced, onModelBakeEventaddCollisionBoxesToList, addDestroyEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, colorMultiplier, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPickBlock, getPickBlock, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isFullBlock, isFullCube, isLadder, isLeaves, isNormalCube, isNormalCube, isOpaqueCube, isPassable, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, updateTickpublic ConfigurableBlockWithInnerBlocks(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig eConfig,
net.minecraft.block.material.Material material)
eConfig - Config for this blockState.material - Material of this blockState.protected abstract net.minecraft.block.state.IBlockState[] makeInnerBlockList()
public void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list)
getSubBlocks in class net.minecraft.block.Blockpublic net.minecraft.item.Item getItemDropped(net.minecraft.block.state.IBlockState blockState,
java.util.Random random,
int zero)
getItemDropped in class net.minecraft.block.Blockprotected net.minecraft.item.ItemStack createStackedBlock(net.minecraft.block.state.IBlockState blockState)
createStackedBlock in class net.minecraft.block.Blockpublic java.lang.String getInfo(net.minecraft.item.ItemStack itemStack)
getInfo in interface org.cyclops.cyclopscore.item.IInformationProviderpublic void provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
provideInformation in interface org.cyclops.cyclopscore.item.IInformationProviderpublic int getMetadataFromBlock(net.minecraft.block.Block block)
block - The blockState to search a stained version forprotected abstract net.minecraft.block.properties.PropertyInteger getMetaProperty()
public net.minecraft.block.state.IBlockState getBlockFromState(net.minecraft.block.state.IBlockState blockState)
blockState - state for the inner blockState.public net.minecraft.block.state.IBlockState getBlockFromMeta(int blockMeta)
blockMeta - meta for the inner blockState.public int getInnerBlocks()
public float getBlockHardness(net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos)
getBlockHardness in class net.minecraft.block.Blockpublic int damageDropped(net.minecraft.block.state.IBlockState blockState)
damageDropped in class net.minecraft.block.Blockpublic boolean canHarvestBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player)
canHarvestBlock in class net.minecraft.block.Blockpublic float getPlayerRelativeBlockHardness(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.BlockPos blockPos)
getPlayerRelativeBlockHardness in class net.minecraft.block.Blockpublic int colorMultiplier(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos blockPos,
int renderPass)
colorMultiplier in class net.minecraft.block.Blockpublic int getRenderColor(net.minecraft.block.state.IBlockState blockState)
getRenderColor in class net.minecraft.block.Blockpublic boolean addHitEffects(net.minecraft.world.World worldObj,
net.minecraft.util.MovingObjectPosition target,
net.minecraft.client.particle.EffectRenderer effectRenderer)
addHitEffects in class net.minecraft.block.Blockpublic boolean hasDynamicModel()
hasDynamicModel in interface org.cyclops.cyclopscore.client.model.IDynamicModelElementhasDynamicModel in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlockpublic net.minecraft.client.resources.model.IBakedModel createDynamicModel()
createDynamicModel in interface org.cyclops.cyclopscore.client.model.IDynamicModelElementcreateDynamicModel in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlock