Package btw.block.blocks
Class OvenBlock
java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockContainer
net.minecraft.src.BlockFurnace
btw.block.blocks.OvenBlock
- All Implemented Interfaces:
ITileEntityProvider
- Direct Known Subclasses:
LooseOvenBlockBurning,LooseOvenBlockIdle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final floatprotected final floatprotected booleantrueif this is a mortared ovenprotected booleanprotected final BlockModelFields inherited from class net.minecraft.src.BlockFurnace
furnaceIconFront, furnaceIconTop, iconFullFront, iconFullFrontLit, isActive, keepFurnaceInventoryFields inherited from class net.minecraft.src.Block
anvil, beacon, bed, bedrock, blockClay, blockConstructorCalled, blockDiamond, blockEmerald, blockGold, blockHardness, blockIcon, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockReplaced, blockReplacedBy, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carpet, carrot, cauldron, chest, chestTrapped, cloth, coalBlock, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, currentBlockRenderer, daylightSensor, deadBush, dirt, dispenser, doorIron, doorWood, dragonEgg, dropper, enableStats, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, furnaceBurning, furnaceIdle, glass, glowStone, grass, gravel, hardenedClay, hasKilnRecipe, hay, hopperBlock, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, melon, melonStem, minX, minY, minZ, mobSpawner, modID, modIDSetter, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, needsRandomTick, netherBrick, netherFence, netherrack, netherStalk, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreEmerald, oreGold, oreIron, oreLapis, oreNetherQuartz, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, potato, pressurePlateGold, pressurePlateIron, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railActivator, railDetector, railPowered, redstoneComparatorActive, redstoneComparatorIdle, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, silverfish, skull, slipperiness, slowSand, snow, soundAnvilFootstep, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundLadderFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundSnowFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stainedClay, stairsBrick, stairsCobblestone, stairsNetherBrick, stairsNetherQuartz, stairsSandStone, stairsStoneBrick, stairsWoodBirch, stairsWoodJungle, stairsWoodOak, stairsWoodSpruce, stepSound, stone, stoneBrick, stoneButton, stoneDoubleSlab, stoneSingleSlab, tallGrass, textureName, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOvenBlock(int iBlockID, boolean bIsLit, boolean bIsMortared) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceBlockAt(World world, int i, int j, int k) Checks to see if its valid to put this block at the specified coordinates.protected booleancanSilkHarvest(int iMetadata) createNewTileEntity(World world) Returns a new instance of a block's tile entity class.booleandoesBlockHopperInsert(World world, int i, int j, int k) Applies to Hopper inserting items directly into the block's inventory.voiddropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) Drops the block items with a specified chance of dropping the specified itemsbooleangetCanBeSetOnFireDirectly(IBlockAccess blockAccess, int i, int j, int k) Whether the block itself can be set on fire, rather than a neighboring block being set to a fire blockintgetChanceOfFireSpreadingDirectlyTo(IBlockAccess blockAccess, int i, int j, int k) intgetComparatorInputOverride(World world, int x, int y, int z, int side) If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal strength when this block inputs to a comparator.getIcon(int iSide, int iMetadata) From the specified side and block metadata retrieves the blocks texture.protected intbooleangetIsBlockWarm(IBlockAccess blockAccess, int i, int j, int k) Returns true if the block is warm enough to melt nearby snow or iceintgetMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) Goes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for FluidsbooleanhasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency) large attachment points that can support a full block widthbooleanhasMortar(IBlockAccess blockAccess, int i, int j, int k) intReturns the ID of the items to drop on destruction.intonly called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---booleantrueif this oven is mortaredbooleanisNormalCube(IBlockAccess blockAccess, int i, int j, int k) booleanisValidCookItem(ItemStack stack) booleanonBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fXClick, float fYClick, float fZClick) Called upon block activation (right click on the block.)voidonBlockAdded(World world, int i, int j, int k) Called whenever the block is added into the world.voidonBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata) Called on server only, after the block is removed from the worldbooleanonMortarApplied(World world, int i, int j, int k) Should return true if mortar has been successfully applied to block.voidonNeighborBlockChange(World world, int i, int j, int k, int iBlockID) Lets the block know when one of its neighbor changes.intquantityDropped(Random rand) Returns the quantity of items to drop on block destruction.voidrandomDisplayTick(World world, int x, int y, int z, Random rand) A randomly called display update to be able to add particles or other items for displayvoidregisterIcons(IconRegister register) When this method is called, your block should register all the icons it needs with the given IconRegister.booleanIf this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)booleanrenderBlock(RenderBlocks renderer, int i, int j, int k) voidrenderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) voidrenderBlockMovedByPiston(RenderBlocks renderBlocks, int i, int j, int k) voidrenderBlockSecondPass(RenderBlocks renderer, int i, int j, int k, boolean bFirstPassResult) If the block has a second pass, like a kiln cooking overlay texture, it should Override this method.booleanrenderBlockWithTexture(RenderBlocks renderer, int i, int j, int k, Icon texture) booleansetOnFireDirectly(World world, int i, int j, int k) booleanshouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide) voidupdateFurnaceBlockState(boolean bBurning, World world, int i, int j, int k, boolean bHasContents) Update which block ID the furnace is using depending on whether or not it is burningMethods inherited from class net.minecraft.src.BlockFurnace
breakBlock, canRotateOnTurntable, canTransmitRotationHorizontallyOnTurntable, canTransmitRotationVerticallyOnTurntable, getCanBlockLightItemOnFire, harvestBlock, hasComparatorInputOverride, onBlockPlacedBy, rotateMetadataAroundYAxisMethods inherited from class net.minecraft.src.BlockContainer
onBlockEventReceivedMethods inherited from class net.minecraft.src.Block
addCollisionBoxesToList, adjustMetadataForPistonMove, adjustPathWeightOnNotBlocked, areAxesEffectiveOn, arechiselseffectiveon, arechiselseffectiveon, areHoesEffectiveOn, arePicksEffectiveOn, areShovelsEffectiveOn, attachToFacing, attemptToAffectBlockWithSoul, attemptToApplyFertilizerTo, attemptToCombineWithFallingEntity, blocksEndermanPickup, canBeConvertedByMobSpawner, canBeCrushedByFallingEntity, canBeGrazedOn, canBePistonShoveled, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStay, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canCollideCheck, canContainPistonPackingToFacing, canConvertBlock, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canEndermenPickUpBlock, canFallIntoBlockAtPos, canGroundCoverRestOnBlock, canLeashKnotOnBlock, canMobsSpawnOn, canNetherWartGrowOnBlock, canPathThroughBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canProvidePower, canRedstoneConnectToSide, canReedsGrowOnBlock, canRotateAroundBlockOnTurntableToFacing, canSaplingsGrowOnBlock, canSilkHarvest, canSpitWebReplaceBlock, canSupportFallingBlocks, canSupportLeaves, canToolsStickInBlock, canToolStickInBlockSpecialCase, canWeedsGrowInBlock, canWildVegetationGrowOnBlock, canWitherDestroyBlock, checkForFall, checkForUnstableGround, clientBlockAdded, clientBreakBlock, clientNotificationOfMetadataChange, collisionRayTrace, collisionRayTraceVsBlockBounds, colorMultiplier, convertBlock, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, createStackedBlock, cycleFacing, damageDropped, disableStats, doEndermenIgnoreNeighbors, doesBlockBreakSaw, doesBlockDropAsItemOnSaw, doesBlockHopperEject, doesExtinguishFireAbove, doesInfiniteBurnToFacing, doesItemRenderAsBlock, dropBlockAsItem, dropBlockAsItem_do, dropComponentItemsOnBadBreak, dropItemsIndividually, dropItemsOnDestroyedByExplosion, dropItemsOnDestroyedByMiningCharge, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getAsPistonMovingBoundingBox, getBlockBoundsFromPoolBasedOnState, getBlockBoundsFromPoolForItemRender, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockHardness, getBlockIDOnInfest, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getBreakSoundName, getBreakSoundName, getBuoyancy, getCanBeCookedByKiLn, getCanBeSetOnFireDirectlyByItem, getCanBlightSpreadToBlock, getCanBlockBeIncinerated, getCanBlockBeReplacedByFire, getCanGrassGrowUnderBlock, getCanGrassSpreadToBlock, getCanMyceliumSpreadToBlock, getChickenItemFoodValue, getCollisionBoundingBoxFromPool, getConvertsLegacySoil, getCookTimeMultiplierInKiLn, getCreativeTabToDisplayOn, getDamageValue, getDoesFireDamageToEntities, getDoesFireDamageToEntities, getDoesStumpRemoverWorkOnBlock, getEfficientToolLevel, getEnableStats, getExplosionResistance, getExplosionResistance, getFacing, getFacing, getFixedBlockBoundsFromPool, getFullBlockBoundingBoxFromPool, getFurnaceBurnTime, getHarvestToolLevel, getHerbivoreItemFoodValue, getHopperFilterIcon, getIconByIndex, getIsFertilizedForPlantGrowth, getIsProblemToRemove, getItemIconName, getLightValue, getLightValueForBlock, getLocalizedName, getMapColor, getMechanicalPowerLevelProvidedToAxleAtFacing, getMetadataConversionForStrataLevel, getMobilityFlag, getModId, getMovementModifier, getNewMetadataRotatedAroundBlockOnTurntableToFacing, getOppositeFacing, getOutputsWhenCookedByKiln, getPigItemFoodValue, getPistonShovelEjectDirection, getPlaceSoundName, getPlaceSoundName, getPlantGrowthOnMultiplier, getPlayerRelativeBlockHardness, getPreventsFluidFlow, getRenderBlockPass, getRenderColor, getRenderType, getSelectedBoundingBoxFromPool, getSelectedBoundingBoxFromPool, getStackRetrievedByBlockDispenser, getStepSound, getStepSound, getStepSoundInternal, getStepSoundName, getStepSoundName, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, getWeedsGrowthLevel, getWeightOnPathBlocked, groundCoverRestingOnVisualOffset, hasCenterHardPointToFacing, hasCenterHardPointToFacing, hasComparatorInputOverride, hasContactPointToFullFace, hasContactPointToSlabSideFace, hasContactPointToStairNarrowVerticalFace, hasContactPointToStairShapedFace, hasFallingBlockRestingOn, hasLargeCenterHardPointToFacing, hasNeighborWithMortarInContact, hasSmallCenterHardPointToFacing, hasSmallCenterHardPointToFacing, hasStickySnowNeighborInContact, hasStrata, hasTileEntity, hasWaterToSidesOrTop, hideFromEMI, hideFromEMI, infestBlock, initBlockBounds, initBlockBounds, initializeBlock, installationIntegrityTest, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBenchOrTable, isBlockAttachedToFacing, isBlockClimbable, isBlockDestroyedByBlockDispenser, isBlockHydratedForPlantGrowthOn, isBlockInfestable, isBlockInfestedBy, isBlockRestingOnThatBelow, isBlockSolid, isBreakableBarricade, isBreakableBarricadeOpen, isCollidable, isConsideredNeighbouringWaterForReedGrowthOn, isFallingBlock, isFence, isFlowerPot, isGroundCover, isIncineratedInCrucible, isLeafBlock, isLog, isNaturalStone, isNormalCube, isOpaqueCube, isProvidingStrongPower, isProvidingWeakPower, isRedstoneConductor, isReplaceableVegetation, isSnowCoveringTopSurface, isStairBlock, isStickyToSnow, isWall, mobSpawnOnVerticalOffset, mouseOverRayTrace, notifyNearbyAnimalsFinishedFalling, notifyNeighborDirtDugWithImproperTool, notifyNeighborsBlockDisrupted, notifyOfFullStagePlantGrowthOn, notifyOfPlantAboveRemoved, onArrowCollide, onArrowImpact, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByMiningCharge, onBlockDestroyedByPlayer, onBlockDestroyedLandingFromFall, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onBlockSawed, onBlockSawed, onBrokenByPistonPush, onCookedByKiLn, onCraftedOnTurntable, onCreativeBonemealApplied, onCrushedByFallingEntity, onDestroyedByFire, onDirtDugWithImproperTool, onDirtSlabDugWithImproperTool, onEntityCollidedWithBlock, onEntityStepsIn, onEntityWalking, onFallenUpon, onFallingUpdate, onFinishedFalling, onFinishFalling, onFluidFlowIntoBlock, onGrazed, onInfested, onNeighborDirtDugWithImproperTool, onNeighborDisrupted, onPlayerWalksOnBlock, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStartFalling, onStruckByLightning, onVegetationAboveGrazed, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDroppedWithBonus, randomUpdateTick, removeWeeds, renderCookingByKiLnOverlay, renderCrossHatch, renderFallingBlock, rotateAroundJAxis, rotateFacingAroundY, rotateOnTurntable, scheduleCheckForFall, setAlwaysStartlesAnimals, setAxesEffectiveOn, setAxesEffectiveOn, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockMaterial, setBlockUnbreakable, setBuoyancy, setBuoyant, setChickenItemFoodValue, setChiselsCanHarvest, setChiselsCanHarvest, setChiselsEffectiveOn, setChiselsEffectiveOn, setCreativeTab, setFacing, setFacing, setFireProperties, setFireProperties, setFurnaceBurnTime, setFurnaceBurnTime, setHardness, setHerbivoreItemFoodValue, setHoesEffectiveOn, setHoesEffectiveOn, setLightOpacity, setLightValue, setMapColorsForMetadata, setModID, setNeutralBuoyant, setNonBuoyant, setPicksEffectiveOn, setPicksEffectiveOn, setPigItemFoodValue, setResistance, setShovelsEffectiveOn, setShovelsEffectiveOn, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldDeleteTileEntityOnBlockChange, shouldFenceConnectToThisBlockToFacing, shouldOffsetPositionIfPathingOutOf, shouldPaneConnectToThisBlockToFacing, shouldPlayStandardConvertSound, shouldRenderNeighborFullFaceSide, shouldRenderNeighborHalfSlabSide, shouldRenderWhileFalling, shouldSideBeRenderedOnFallingBlock, shouldWallConnectToThisBlockToFacing, shouldWallFormPostBelowThisBlock, spreadGrassToBlock, spreadMyceliumToBlock, startlesAnimalsWhenPlaced, tickRate, toggleFacing, triggersBuddy, turntableCraftingRotation, updateTick, velocityToAddToEntity
-
Field Details
-
modelBlockInterior
-
clickYTopPortion
protected final float clickYTopPortion- See Also:
-
clickYBottomPortion
protected final float clickYBottomPortion- See Also:
-
isMortared
protected boolean isMortaredtrueif this is a mortared oven -
isRenderingInterior
@Environment(CLIENT) protected boolean isRenderingInterior
-
-
Constructor Details
-
OvenBlock
protected OvenBlock(int iBlockID, boolean bIsLit, boolean bIsMortared)
-
-
Method Details
-
createNewTileEntity
Description copied from class:BlockFurnaceReturns a new instance of a block's tile entity class. Called on placing the block.- Specified by:
createNewTileEntityin interfaceITileEntityProvider- Overrides:
createNewTileEntityin classBlockFurnace
-
onBlockActivated
public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fXClick, float fYClick, float fZClick) Description copied from class:BlockFurnaceCalled upon block activation (right click on the block.)- Overrides:
onBlockActivatedin classBlockFurnace
-
onBlockAdded
Description copied from class:BlockFurnaceCalled whenever the block is added into the world. Args: world, x, y, z- Overrides:
onBlockAddedin classBlockFurnace
-
onMortarApplied
Description copied from class:BlockShould return true if mortar has been successfully applied to block.- Overrides:
onMortarAppliedin classBlock
-
quantityDropped
Description copied from class:BlockReturns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin classBlockFurnace
-
idDropped
Description copied from class:BlockReturns the ID of the items to drop on destruction.- Overrides:
idDroppedin classBlockFurnace
-
canSilkHarvest
protected boolean canSilkHarvest(int iMetadata) - Overrides:
canSilkHarvestin classBlock
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) Drops the block items with a specified chance of dropping the specified items- Overrides:
dropBlockAsItemWithChancein classBlock
-
onBlockDestroyedWithImproperTool
public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata) Description copied from class:BlockCalled on server only, after the block is removed from the world- Overrides:
onBlockDestroyedWithImproperToolin classBlock
-
canPlaceBlockAt
Description copied from class:BlockChecks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z- Overrides:
canPlaceBlockAtin classBlock
-
onNeighborBlockChange
Description copied from class:BlockLets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---- Overrides:
onNeighborBlockChangein classBlock
-
hasLargeCenterHardPointToFacing
public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency) Description copied from class:Blocklarge attachment points that can support a full block width- Overrides:
hasLargeCenterHardPointToFacingin classBlock
-
updateFurnaceBlockState
public void updateFurnaceBlockState(boolean bBurning, World world, int i, int j, int k, boolean bHasContents) Description copied from class:BlockFurnaceUpdate which block ID the furnace is using depending on whether or not it is burning- Overrides:
updateFurnaceBlockStatein classBlockFurnace
-
getCanBeSetOnFireDirectly
Description copied from class:BlockWhether the block itself can be set on fire, rather than a neighboring block being set to a fire block- Overrides:
getCanBeSetOnFireDirectlyin classBlock
-
setOnFireDirectly
- Overrides:
setOnFireDirectlyin classBlock
-
getChanceOfFireSpreadingDirectlyTo
- Overrides:
getChanceOfFireSpreadingDirectlyToin classBlock
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Description copied from class:BlockIf this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)- Overrides:
renderAsNormalBlockin classBlock
-
getIDDroppedOnSilkTouch
protected int getIDDroppedOnSilkTouch()- Overrides:
getIDDroppedOnSilkTouchin classBlockFurnace
-
getIsBlockWarm
Description copied from class:BlockReturns true if the block is warm enough to melt nearby snow or ice- Overrides:
getIsBlockWarmin classBlock
-
doesBlockHopperInsert
Description copied from class:BlockApplies to Hopper inserting items directly into the block's inventory. This does not ensure the block has a valid inventory, it's just a first-pass chance to block such behavior.- Overrides:
doesBlockHopperInsertin classBlock
-
getComparatorInputOverride
Description copied from class:BlockFurnaceIf hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal strength when this block inputs to a comparator.- Overrides:
getComparatorInputOverridein classBlockFurnace
-
hasMortar
-
isNormalCube
- Overrides:
isNormalCubein classBlock
-
isValidCookItem
-
isMortared
public boolean isMortared()trueif this oven is mortared -
registerIcons
Description copied from class:BlockWhen this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.- Overrides:
registerIconsin classBlockFurnace
-
idPicked
Description copied from class:Blockonly called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---- Overrides:
idPickedin classBlockFurnace
-
getIcon
Description copied from class:BlockFrom the specified side and block metadata retrieves the blocks texture. Args: side, metadata- Overrides:
getIconin classBlockFurnace
-
shouldSideBeRendered
@Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide) - Overrides:
shouldSideBeRenderedin classBlock
-
renderBlock
- Overrides:
renderBlockin classBlock
-
renderBlockSecondPass
@Environment(CLIENT) public void renderBlockSecondPass(RenderBlocks renderer, int i, int j, int k, boolean bFirstPassResult) Description copied from class:BlockIf the block has a second pass, like a kiln cooking overlay texture, it should Override this method. This method does not call the overlay by default to cut down on rendering time, since this function is called by every single loaded block. Note that this function is necessary to prevent potential recursion within RenderBlock, if it were to call its own overlays directly, and then potentially get called with a texture overlay itself through RenderBlockWithTexture.- Overrides:
renderBlockSecondPassin classBlock
-
getMixedBrightnessForBlock
@Environment(CLIENT) public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) Description copied from class:BlockGoes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for Fluids- Overrides:
getMixedBrightnessForBlockin classBlock
-
renderBlockWithTexture
@Environment(CLIENT) public boolean renderBlockWithTexture(RenderBlocks renderer, int i, int j, int k, Icon texture) - Overrides:
renderBlockWithTexturein classBlock
-
renderBlockAsItem
@Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) - Overrides:
renderBlockAsItemin classBlock
-
randomDisplayTick
Description copied from class:BlockA randomly called display update to be able to add particles or other items for display- Overrides:
randomDisplayTickin classBlockFurnace
-
renderBlockMovedByPiston
@Environment(CLIENT) public void renderBlockMovedByPiston(RenderBlocks renderBlocks, int i, int j, int k) - Overrides:
renderBlockMovedByPistonin classBlock
-