public class BlockRedstoneComparator extends BlockRedstoneDiode implements ITileEntityProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockRedstoneComparator.Mode |
Block.EnumOffsetTypeIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
static PropertyEnum<BlockRedstoneComparator.Mode> |
MODE |
static PropertyBool |
POWERED |
isRepeaterPowered, REDSTONE_DIODE_AABBFACINGBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightnessdelegate| Constructor and Description |
|---|
BlockRedstoneComparator(boolean powered) |
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlock(World worldIn,
BlockPos pos,
IBlockState state) |
protected int |
calculateInputStrength(World worldIn,
BlockPos pos,
IBlockState state) |
protected BlockStateContainer |
createBlockState() |
TileEntity |
createNewTileEntity(World worldIn,
int meta) |
boolean |
eventReceived(IBlockState state,
World worldIn,
BlockPos pos,
int id,
int param) |
protected int |
getActiveSignal(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
protected int |
getDelay(IBlockState state) |
ItemStack |
getItem(World worldIn,
BlockPos pos,
IBlockState state) |
Item |
getItemDropped(IBlockState state,
java.util.Random rand,
int fortune) |
java.lang.String |
getLocalizedName() |
int |
getMetaFromState(IBlockState state) |
protected IBlockState |
getPoweredState(IBlockState unpoweredState) |
IBlockState |
getStateFromMeta(int meta) |
protected IBlockState |
getUnpoweredState(IBlockState poweredState) |
boolean |
getWeakChanges(IBlockAccess world,
BlockPos pos)
If this block should be notified of weak changes.
|
protected boolean |
isPowered(IBlockState state) |
boolean |
onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
ItemStack heldItem,
EnumFacing side,
float hitX,
float hitY,
float hitZ) |
void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState state) |
IBlockState |
onBlockPlaced(World worldIn,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer) |
void |
onNeighborChange(IBlockAccess world,
BlockPos pos,
BlockPos neighbor)
Called when a tile entity on a side of this block changes is created or is destroyed.
|
protected boolean |
shouldBePowered(World worldIn,
BlockPos pos,
IBlockState state) |
protected void |
updateState(World worldIn,
BlockPos pos,
IBlockState state) |
void |
updateTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
IBlockState |
withMirror(IBlockState state,
Mirror mirrorIn) |
IBlockState |
withRotation(IBlockState state,
Rotation rot) |
canBlockStay, canPlaceBlockAt, canProvidePower, getBlockLayer, getBoundingBox, getPowerOnSide, getPowerOnSides, getStrongPower, getTickDelay, getWeakPower, isAlternateInput, isAssociatedBlock, isDiode, isFacingTowardsRepeater, isFullCube, isLocked, isOpaqueCube, isSameDiode, neighborChanged, notifyNeighbors, onBlockDestroyedByPlayer, onBlockPlacedBy, randomTick, shouldSideBeRenderedaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSoundType, getStateById, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toStringgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic static final PropertyBool POWERED
public static final PropertyEnum<BlockRedstoneComparator.Mode> MODE
public java.lang.String getLocalizedName()
getLocalizedName in class Block@Nullable public Item getItemDropped(IBlockState state, java.util.Random rand, int fortune)
getItemDropped in class Blockpublic ItemStack getItem(World worldIn, BlockPos pos, IBlockState state)
protected int getDelay(IBlockState state)
getDelay in class BlockRedstoneDiodeprotected IBlockState getPoweredState(IBlockState unpoweredState)
getPoweredState in class BlockRedstoneDiodeprotected IBlockState getUnpoweredState(IBlockState poweredState)
getUnpoweredState in class BlockRedstoneDiodeprotected boolean isPowered(IBlockState state)
isPowered in class BlockRedstoneDiodeprotected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
getActiveSignal in class BlockRedstoneDiodeprotected boolean shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
shouldBePowered in class BlockRedstoneDiodeprotected int calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
calculateInputStrength in class BlockRedstoneDiodepublic boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ)
onBlockActivated in class Blockprotected void updateState(World worldIn, BlockPos pos, IBlockState state)
updateState in class BlockRedstoneDiodepublic void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick in class BlockRedstoneDiodepublic void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded in class BlockRedstoneDiodepublic void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock in class Blockpublic boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param)
eventReceived in class Blockpublic TileEntity createNewTileEntity(World worldIn, int meta)
createNewTileEntity in interface ITileEntityProviderpublic IBlockState getStateFromMeta(int meta)
getStateFromMeta in class Blockpublic int getMetaFromState(IBlockState state)
getMetaFromState in class Blockpublic IBlockState withRotation(IBlockState state, Rotation rot)
withRotation in class Blockpublic IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror in class Blockprotected BlockStateContainer createBlockState()
createBlockState in class Blockpublic IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
onBlockPlaced in class BlockRedstoneDiodepublic void onNeighborChange(IBlockAccess world, BlockPos pos, BlockPos neighbor)
BlockonNeighborChange in class Blockworld - The worldpos - Block position in worldneighbor - Block position of neighborpublic boolean getWeakChanges(IBlockAccess world, BlockPos pos)
BlockgetWeakChanges in class Blockworld - The current worldpos - Block position in world