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, displayOnCreativeTab, 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 world,
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() |
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() |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.state.IBlockState blockState,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player) |
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,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> 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, getStateForPlacement, getStateFromMeta, hasGui, onModelBakeEventaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addInformation, addLandingEffects, beginLeavesDecay, breakBlock, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, 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, getOffset, getOffsetType, getPackedLightmapCoords, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, 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, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, 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,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> 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.Blockpublic net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.state.IBlockState blockState,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player)
getPickBlock 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 world,
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