public class BloodStainedBlock extends ConfigurableBlockWithInnerBlocksExtended
| Modifier and Type | Class and Description |
|---|---|
static class |
BloodStainedBlock.UnstainResult
A result from unstaining a block.
|
ConfigurableBlockWithInnerBlocksExtended.InvalidInnerBlocksTileExceptioneConfig, hasGui, isInventoryBlock, pass, random, renderer, sideIconsblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness| Modifier and Type | Method and Description |
|---|---|
boolean |
canSetInnerBlock(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
If the given block can be set to an inner block of this.
|
void |
fillWithRain(net.minecraft.world.World world,
int x,
int y,
int z) |
int |
getAlternateIconsAmount()
Get the amount of alternative icons for the blood stains.
|
net.minecraft.util.IIcon |
getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side) |
net.minecraft.util.IIcon |
getIcon(int side,
int meta,
int renderPass,
net.minecraft.util.IIcon defaultIcon,
net.minecraft.block.Block baseBlock)
Get the icon.
|
static BloodStainedBlock |
getInstance()
Get the unique instance.
|
int |
getRenderPasses()
Get the amount of required render passes.
|
static void |
initInstance(ExtendedConfig<BlockConfig> eConfig)
Initialise the configurable.
|
protected boolean |
isBlacklisted(net.minecraft.block.Block block) |
void |
onBlockClicked(net.minecraft.world.World par1World,
int par2,
int par3,
int par4,
net.minecraft.entity.player.EntityPlayer par5EntityPlayer) |
void |
onEntityWalking(net.minecraft.world.World par1World,
int par2,
int par3,
int par4,
net.minecraft.entity.Entity par5Entity) |
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
static void |
splash(net.minecraft.world.World world,
int x,
int y,
int z)
Spawn particles.
|
void |
stainBlock(net.minecraft.world.World world,
ILocation location,
int amount)
Stain a block, or add blood to the already stained block.
|
BloodStainedBlock.UnstainResult |
unstainBlock(net.minecraft.world.World world,
ILocation location,
int amount)
Drain a given amount of blood from a stained block.
|
colorMultiplier, getBlockHardness, getDrops, getPickBlock, getSubBlocks, getTile, removedByPlayer, saveNBTToDroppedItem, setInnerBlock, setInnerBlock, unwrapInnerBlock, unwrapInnerBlockbreakBlock, createNewTileEntity, getConfig, getGuiTexture, getGuiTexture, getIcon, getIcon, getRenderBlocks, getRenderType, getTextureName, getTileEntity, hasGui, isKeepNBTOnDrop, isOpaqueCube, isRotatable, onBlockDestroyedByExplosion, onBlockPlacedBy, onPostBlockDestroyed, onPreBlockDestroyed, rotateBlock, setInventoryBlock, setRenderBlocks, setRenderPass, setRotatable, shouldRender, updateTileEntity, writeAdditionalInfoaddCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlocks, removedByPlayer, renderAsNormalBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntitypublic static void initInstance(ExtendedConfig<BlockConfig> eConfig)
eConfig - The config.public static BloodStainedBlock getInstance()
public int getAlternateIconsAmount()
public int getRenderPasses()
IMultiRenderPassBlockgetRenderPasses in interface IMultiRenderPassBlockgetRenderPasses in class ConfigurableBlockContainerpublic void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class ConfigurableBlockContainerpublic net.minecraft.util.IIcon getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
getIcon in class ConfigurableBlockWithInnerBlocksExtendedpublic net.minecraft.util.IIcon getIcon(int side,
int meta,
int renderPass,
net.minecraft.util.IIcon defaultIcon,
net.minecraft.block.Block baseBlock)
throws ConfigurableBlockWithInnerBlocksExtended.InvalidInnerBlocksTileException
side - The side to render.meta - The metadata for the block to render.renderPass - The renderpass.defaultIcon - The default icon to render if none needs to be rendered.baseBlock - The base block.InvalidInnerBlocksTileException - If an error occurred while getting the icon.ConfigurableBlockWithInnerBlocksExtended.InvalidInnerBlocksTileExceptionpublic void onBlockClicked(net.minecraft.world.World par1World,
int par2,
int par3,
int par4,
net.minecraft.entity.player.EntityPlayer par5EntityPlayer)
onBlockClicked in class net.minecraft.block.Blockpublic void onEntityWalking(net.minecraft.world.World par1World,
int par2,
int par3,
int par4,
net.minecraft.entity.Entity par5Entity)
onEntityWalking in class net.minecraft.block.Blockpublic static void splash(net.minecraft.world.World world,
int x,
int y,
int z)
world - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.public void fillWithRain(net.minecraft.world.World world,
int x,
int y,
int z)
fillWithRain in class net.minecraft.block.Blockpublic void stainBlock(net.minecraft.world.World world,
ILocation location,
int amount)
world - The world.location - The location.amount - The amount of blood to add.public BloodStainedBlock.UnstainResult unstainBlock(net.minecraft.world.World world, ILocation location, int amount)
world - The world.location - The location.amount - The amount of blood to drain.protected boolean isBlacklisted(net.minecraft.block.Block block)
public boolean canSetInnerBlock(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
ConfigurableBlockWithInnerBlocksExtendedcanSetInnerBlock in class ConfigurableBlockWithInnerBlocksExtendedblock - The block to set as inner block.world - The world.x - Xy - Yz - Z