public abstract class ConfigurableBlockWithInnerBlocks
extends org.cyclops.cyclopscore.config.configurable.ConfigurableBlock
implements org.cyclops.cyclopscore.item.IInformationProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurableBlockWithInnerBlocks.BlockColor |
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.state.IBlockState[] |
INNER_BLOCKS |
eConfig, hasGui, isInventoryBlock, pass, propertyManagerBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, 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.block.state.IBlockState blockState,
net.minecraft.world.World worldObj,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager particleManager) |
boolean |
canHarvestBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.client.renderer.block.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.client.renderer.color.IBlockColor |
getBlockColorHandler() |
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.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.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.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos) |
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, onModelBakeEventaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addInformation, addLandingEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_189539_a, func_189540_a, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockLayer, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPackedLightmapCoords, getPickBlock, getRenderType, getSelectedBoundingBox, getSoundType, getStateById, getStateId, getStrongPower, 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, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, 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 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.block.state.IBlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.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.math.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player)
canHarvestBlock in class net.minecraft.block.Blockpublic float getPlayerRelativeBlockHardness(net.minecraft.block.state.IBlockState blockState,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos)
getPlayerRelativeBlockHardness in class net.minecraft.block.Blockpublic boolean addHitEffects(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World worldObj,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager particleManager)
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.renderer.block.model.IBakedModel createDynamicModel()
createDynamicModel in interface org.cyclops.cyclopscore.client.model.IDynamicModelElementcreateDynamicModel in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlock@Nullable public net.minecraft.client.renderer.color.IBlockColor getBlockColorHandler()
getBlockColorHandler in interface org.cyclops.cyclopscore.config.configurable.IConfigurableBlockgetBlockColorHandler in class org.cyclops.cyclopscore.config.configurable.ConfigurableBlock