public class MalisisBlock extends net.minecraft.block.Block implements IBoundingBox, IMetaIconProvider, IRegisterable, IComponentProvider
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.AxisAlignedBB |
boundingBox |
protected java.util.List<IBlockComponent> |
components |
protected IIconProvider |
iconProvider |
protected java.lang.String |
name |
BLOCK_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| Modifier | Constructor and Description |
|---|---|
protected |
MalisisBlock(net.minecraft.block.material.Material material) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxesToList(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.AxisAlignedBB mask,
java.util.List list,
net.minecraft.entity.Entity collidingEntity) |
void |
addComponent(IBlockComponent component)
Adds the
IBlockComponent to this IComponentProvider. |
void |
breakBlock(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected void |
buildBlockState() |
boolean |
canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos) |
boolean |
canPlaceBlockOnSide(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side) |
net.minecraft.util.MovingObjectPosition |
collisionRayTrace(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest) |
int |
colorMultiplier(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
int renderPass) |
void |
createIconProvider(java.lang.Object object) |
int |
damageDropped(net.minecraft.block.state.IBlockState state) |
net.minecraft.util.AxisAlignedBB |
getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
BoundingBoxType type) |
net.minecraft.util.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
BoundingBoxType type)
Gets the
AxisAlignedBB for this IBoundingBox. |
<T> T |
getComponent(java.lang.Class<T> type)
Gets the
IBlockComponent of the specified type from this IComponentProvider. |
java.util.List<IBlockComponent> |
getComponents()
Gets the
IBlockComponent for this IComponentProvider. |
IIconProvider |
getIconProvider() |
net.minecraft.item.Item |
getItem(net.minecraft.block.Block block)
Gets the item to register the implementing
Block with. |
net.minecraft.item.Item |
getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune) |
int |
getLightOpacity(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos) |
net.minecraft.block.material.MapColor |
getMapColor(net.minecraft.block.state.IBlockState state) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
int |
getMixedBrightnessForBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos) |
protected java.util.List<net.minecraft.block.properties.IProperty> |
getProperties() |
java.lang.String |
getRegistryName()
Gets the registry name to use.
|
int |
getRenderColor(net.minecraft.block.state.IBlockState state) |
int |
getRenderType() |
net.minecraft.util.AxisAlignedBB |
getSelectedBoundingBox(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos) |
net.minecraft.block.state.IBlockState |
getStateFromItemStack(net.minecraft.item.ItemStack itemStack) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List list) |
java.lang.String |
getUnlocalizedName(net.minecraft.block.state.IBlockState state) |
boolean |
isFullBlock() |
boolean |
isFullCube() |
boolean |
isLadder(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.entity.EntityLivingBase entity) |
boolean |
isOpaqueCube() |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ) |
net.minecraft.block.state.IBlockState |
onBlockPlaced(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
void |
onNeighborBlockChange(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock) |
int |
quantityDropped(net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random) |
net.minecraft.block.Block |
setName(java.lang.String name) |
boolean |
shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side) |
addDestroyEffects, addHitEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, colorMultiplier, createBlockState, createStackedBlock, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffsetType, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, 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, isLeaves, isNormalCube, isNormalCube, isPassable, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, 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, spawnAsEntity, tickRate, updateTickclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollisionBoundingBoxes, getRayTraceBoundingBox, getRenderBoundingBoxsetTexture, setTexture, setTexture, setTextureregisterprotected java.lang.String name
protected net.minecraft.util.AxisAlignedBB boundingBox
protected final java.util.List<IBlockComponent> components
protected IIconProvider iconProvider
protected MalisisBlock(net.minecraft.block.material.Material material)
protected java.util.List<net.minecraft.block.properties.IProperty> getProperties()
protected void buildBlockState()
public java.util.List<IBlockComponent> getComponents()
IComponentProviderIBlockComponent for this IComponentProvider.getComponents in interface IComponentProviderpublic void addComponent(IBlockComponent component)
IComponentProviderIBlockComponent to this IComponentProvider.addComponent in interface IComponentProvidercomponent - the componentpublic <T> T getComponent(java.lang.Class<T> type)
IComponentProviderIBlockComponent of the specified type from this IComponentProvider.getComponent in interface IComponentProviderT - the generic typetype - the typepublic net.minecraft.block.Block setName(java.lang.String name)
public java.lang.String getUnlocalizedName(net.minecraft.block.state.IBlockState state)
public net.minecraft.item.Item getItem(net.minecraft.block.Block block)
IRegisterableBlock with.IllegalStateException if called on a implementor that is not a Block.getItem in interface IRegisterableblock - the blockpublic java.lang.String getRegistryName()
IRegisterablegetRegistryName in interface IRegisterablepublic void createIconProvider(java.lang.Object object)
createIconProvider in interface IMetaIconProviderpublic IIconProvider getIconProvider()
getIconProvider in interface IMetaIconProviderpublic net.minecraft.block.state.IBlockState getStateFromItemStack(net.minecraft.item.ItemStack itemStack)
public net.minecraft.block.state.IBlockState onBlockPlaced(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer)
onBlockPlaced in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
onBlockActivated in class net.minecraft.block.Blockpublic void onNeighborBlockChange(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock)
onNeighborBlockChange in class net.minecraft.block.Blockpublic void breakBlock(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state)
breakBlock in class net.minecraft.block.Blockpublic net.minecraft.util.AxisAlignedBB getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
BoundingBoxType type)
getBoundingBox in interface IBoundingBoxpublic net.minecraft.util.AxisAlignedBB[] getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
BoundingBoxType type)
IBoundingBoxAxisAlignedBB for this IBoundingBox.getBoundingBoxes in interface IBoundingBoxworld - the worldpos - the postype - the typepublic void addCollisionBoxesToList(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.AxisAlignedBB mask,
java.util.List list,
net.minecraft.entity.Entity collidingEntity)
addCollisionBoxesToList in interface IBoundingBoxaddCollisionBoxesToList in class net.minecraft.block.Blockpublic net.minecraft.util.AxisAlignedBB getSelectedBoundingBox(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos)
getSelectedBoundingBox in interface IBoundingBoxgetSelectedBoundingBox in class net.minecraft.block.Blockpublic net.minecraft.util.MovingObjectPosition collisionRayTrace(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest)
collisionRayTrace in interface IBoundingBoxcollisionRayTrace in class net.minecraft.block.Blockpublic boolean canPlaceBlockOnSide(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side)
canPlaceBlockOnSide in class net.minecraft.block.Blockpublic boolean canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos)
canPlaceBlockAt in class net.minecraft.block.Blockpublic int damageDropped(net.minecraft.block.state.IBlockState state)
damageDropped in class net.minecraft.block.Blockpublic void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List list)
getSubBlocks in class net.minecraft.block.Blockpublic int colorMultiplier(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
int renderPass)
colorMultiplier in class net.minecraft.block.Blockpublic net.minecraft.block.material.MapColor getMapColor(net.minecraft.block.state.IBlockState state)
getMapColor in class net.minecraft.block.Blockpublic int getRenderColor(net.minecraft.block.state.IBlockState state)
getRenderColor in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class net.minecraft.block.Blockpublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class net.minecraft.block.Blockpublic boolean shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class net.minecraft.block.Blockpublic boolean isFullBlock()
isFullBlock in class net.minecraft.block.Blockpublic boolean isFullCube()
isFullCube in class net.minecraft.block.Blockpublic boolean isOpaqueCube()
isOpaqueCube in class net.minecraft.block.Blockpublic int getMixedBrightnessForBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
getMixedBrightnessForBlock in class net.minecraft.block.Blockpublic net.minecraft.item.Item getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune)
getItemDropped in class net.minecraft.block.Blockpublic int quantityDropped(net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random)
quantityDropped in class net.minecraft.block.Blockpublic int getLightOpacity(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
getLightOpacity in class net.minecraft.block.Blockpublic boolean isLadder(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.entity.EntityLivingBase entity)
isLadder in class net.minecraft.block.Blockpublic int getRenderType()
getRenderType in class net.minecraft.block.Block