public abstract class BlockRedstoneLogic extends BlockDirectional
Modifier and Type | Field and Description |
---|---|
protected boolean |
isRepeaterPowered
Tells whether the repeater is powered or not
|
anvil, beacon, bed, bedrock, blockClay, blockConstructorCalled, blockDiamond, blockEmerald, blockFireSpreadSpeed, blockFlammability, blockGold, blockHardness, blockIcon, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carpet, carrot, cauldron, chest, chestTrapped, cloth, coalBlock, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, 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, hay, hopperBlock, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, melon, melonStem, minX, minY, minZ, mobSpawner, 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
Modifier | Constructor and Description |
---|---|
protected |
BlockRedstoneLogic(int par1,
boolean par2) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBlockStay(World par1World,
int par2,
int par3,
int par4)
Can this block stay at this position.
|
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates.
|
boolean |
canProvidePower()
Can this block provide power.
|
boolean |
func_83011_d(World par1World,
int par2,
int par3,
int par4,
int par5) |
boolean |
func_94476_e(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
protected boolean |
func_94477_d(int par1) |
protected void |
func_94479_f(World par1World,
int par2,
int par3,
int par4,
int par5) |
protected int |
func_94480_d(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
protected abstract int |
func_94481_j_(int i) |
protected int |
func_94482_f(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
protected void |
func_94483_i_(World par1World,
int par2,
int par3,
int par4) |
protected abstract BlockRedstoneLogic |
func_94484_i() |
protected abstract BlockRedstoneLogic |
func_94485_e() |
protected int |
func_94486_g(int par1) |
boolean |
func_94487_f(int par1) |
protected int |
func_94488_g(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
protected boolean |
func_96470_c(int par1) |
Icon |
getIcon(int par1,
int par2) |
protected int |
getInputStrength(World par1World,
int par2,
int par3,
int par4,
int par5)
Returns the signal strength at one input of the block.
|
int |
getRenderType()
The type of render function that is called for this block
|
boolean |
isAssociatedBlockID(int par1)
Returns true if the given block ID is equivalent to this one.
|
protected boolean |
isGettingInput(World par1World,
int par2,
int par3,
int par4,
int par5) |
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two
adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
|
int |
isProvidingStrongPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting direct/strong redstone power on the specified side.
|
int |
isProvidingWeakPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting indirect/weak redstone power on the specified side.
|
static boolean |
isRedstoneRepeaterBlockID(int par0) |
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world.
|
void |
onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
Called right before the block is destroyed by a player.
|
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLivingBase par5EntityLivingBase,
ItemStack par6ItemStack)
Called when the block is placed in the world.
|
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes.
|
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
boolean |
shouldSideBeRendered(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
java.util.Random par5Random)
Ticks the block if it's been scheduled
|
getDirection
addBlockDestroyEffects, addBlockHitEffects, addCollisionBoxesToList, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInPass, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem_do, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockDropped, getBlockHardness, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFilledPercentage, getFireSpreadSpeed, getFlammability, getItemIconName, getLightOpacity, getLightValue, getLocalizedName, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, idDropped, idPicked, initializeBlock, isAirBlock, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isFlowerPot, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborTileChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerIcons, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, tickRate, velocityToAddToEntity, weakTileChanges
protected final boolean isRepeaterPowered
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt
in class Block
public boolean canBlockStay(World par1World, int par2, int par3, int par4)
canBlockStay
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, java.util.Random par5Random)
updateTick
in class Block
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
shouldSideBeRendered
in class Block
public int getRenderType()
getRenderType
in class Block
protected boolean func_96470_c(int par1)
public int isProvidingStrongPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingStrongPower
in class Block
public int isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isProvidingWeakPower
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
protected void func_94479_f(World par1World, int par2, int par3, int par4, int par5)
public boolean func_94476_e(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
protected boolean isGettingInput(World par1World, int par2, int par3, int par4, int par5)
protected int getInputStrength(World par1World, int par2, int par3, int par4, int par5)
protected int func_94482_f(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
protected int func_94488_g(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean canProvidePower()
canProvidePower
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
onBlockPlacedBy
in class Block
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
protected void func_94483_i_(World par1World, int par2, int par3, int par4)
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
onBlockDestroyedByPlayer
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
protected boolean func_94477_d(int par1)
protected int func_94480_d(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public static boolean isRedstoneRepeaterBlockID(int par0)
public boolean func_94487_f(int par1)
public boolean func_83011_d(World par1World, int par2, int par3, int par4, int par5)
protected int func_94486_g(int par1)
protected abstract int func_94481_j_(int i)
protected abstract BlockRedstoneLogic func_94485_e()
protected abstract BlockRedstoneLogic func_94484_i()
public boolean isAssociatedBlockID(int par1)
isAssociatedBlockID
in class Block