public class BlockComparator extends BlockRedstoneLogic implements ITileEntityProvider
isRepeaterPowered
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
Constructor and Description |
---|
BlockComparator(int par1,
boolean par2) |
Modifier and Type | Method and Description |
---|---|
void |
breakBlock(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Called on server worlds only when the block has been replaced by a different block ID, or the same block with a
different metadata value, but before the new metadata value is set.
|
TileEntity |
createNewTileEntity(World par1World)
Returns a new instance of a block's tile entity class.
|
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 int |
func_94481_j_(int par1) |
protected BlockRedstoneLogic |
func_94484_i() |
protected BlockRedstoneLogic |
func_94485_e() |
boolean |
func_94490_c(int par1) |
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
|
TileEntityComparator |
getTileEntityComparator(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Returns the blockTileEntity at given coordinates.
|
int |
idDropped(int par1,
java.util.Random par2Random,
int par3)
Returns the ID of the items to drop on destruction.
|
int |
idPicked(World par1World,
int par2,
int par3,
int par4) |
protected boolean |
isGettingInput(World par1World,
int par2,
int par3,
int par4,
int par5) |
boolean |
onBlockActivated(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer,
int par6,
float par7,
float par8,
float par9)
Called upon block activation (right click on the block.)
|
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world.
|
boolean |
onBlockEventReceived(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Called when the block receives a BlockEvent - see World.addBlockEvent.
|
void |
onNeighborTileChange(World world,
int x,
int y,
int z,
int tileX,
int tileY,
int tileZ)
Called when a tile entity on a side of this block changes is created or is destroyed.
|
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
java.util.Random par5Random)
Ticks the block if it's been scheduled
|
boolean |
weakTileChanges() |
canBlockStay, canPlaceBlockAt, canProvidePower, func_83011_d, func_94476_e, func_94477_d, func_94482_f, func_94483_i_, func_94486_g, func_94487_f, func_94488_g, isAssociatedBlockID, isOpaqueCube, isProvidingStrongPower, isProvidingWeakPower, isRedstoneRepeaterBlockID, onBlockDestroyedByPlayer, onBlockPlacedBy, onNeighborBlockChange, renderAsNormalBlock, shouldSideBeRendered
getDirection
addBlockDestroyEffects, addBlockHitEffects, addCollisionBoxesToList, addCreativeItems, beginLeavesDecay, 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, initializeBlock, isAirBlock, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isFlowerPot, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isWood, onBlockClicked, onBlockDestroyedByExplosion, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, 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
public int idDropped(int par1, java.util.Random par2Random, int par3)
public int idPicked(World par1World, int par2, int par3, int par4)
protected int func_94481_j_(int par1)
func_94481_j_
in class BlockRedstoneLogic
protected BlockRedstoneLogic func_94485_e()
func_94485_e
in class BlockRedstoneLogic
protected BlockRedstoneLogic func_94484_i()
func_94484_i
in class BlockRedstoneLogic
public int getRenderType()
getRenderType
in class BlockRedstoneLogic
public Icon getIcon(int par1, int par2)
getIcon
in class BlockRedstoneLogic
protected boolean func_96470_c(int par1)
func_96470_c
in class BlockRedstoneLogic
protected int func_94480_d(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
func_94480_d
in class BlockRedstoneLogic
public boolean func_94490_c(int par1)
protected boolean isGettingInput(World par1World, int par2, int par3, int par4, int par5)
isGettingInput
in class BlockRedstoneLogic
protected int getInputStrength(World par1World, int par2, int par3, int par4, int par5)
getInputStrength
in class BlockRedstoneLogic
public TileEntityComparator getTileEntityComparator(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
onBlockActivated
in class Block
protected void func_94479_f(World par1World, int par2, int par3, int par4, int par5)
func_94479_f
in class BlockRedstoneLogic
public void updateTick(World par1World, int par2, int par3, int par4, java.util.Random par5Random)
updateTick
in class BlockRedstoneLogic
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class BlockRedstoneLogic
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock
in class Block
public boolean onBlockEventReceived(World par1World, int par2, int par3, int par4, int par5, int par6)
onBlockEventReceived
in class Block
public TileEntity createNewTileEntity(World par1World)
createNewTileEntity
in interface ITileEntityProvider
public void onNeighborTileChange(World world, int x, int y, int z, int tileX, int tileY, int tileZ)
Block
onNeighborTileChange
in class Block
world
- The worldx
- The x position of this block instancey
- The y position of this block instancez
- The z position of this block instancetileX
- The x position of the tile that changedtileY
- The y position of the tile that changedtileZ
- The z position of the tile that changedpublic boolean weakTileChanges()
weakTileChanges
in class Block