public class BlockRedstoneComparator extends BlockRedstoneDiode implements ITileEntityProvider
Modifier and Type | Class and Description |
---|---|
static class |
BlockRedstoneComparator.Mode |
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
static PropertyEnum<BlockRedstoneComparator.Mode> |
MODE |
static PropertyBool |
POWERED |
isRepeaterPowered, REDSTONE_DIODE_AABB
FACING
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
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 |
getStateForPlacement(World worldIn,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer) |
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,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState state) |
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, getBlockFaceShape, getBlockLayer, getBoundingBox, getPowerOnSide, getPowerOnSides, getStrongPower, getTickDelay, getWeakPower, isAlternateInput, isAssociatedBlock, isDiode, isFacingTowardsRepeater, isFullCube, isLocked, isOpaqueCube, isSameDiode, neighborChanged, notifyNeighbors, onBlockDestroyedByPlayer, onBlockPlacedBy, randomTick, rotateBlock, shouldSideBeRendered
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockClicked, onBlockDestroyedByExplosion, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final PropertyBool POWERED
public static final PropertyEnum<BlockRedstoneComparator.Mode> MODE
public java.lang.String getLocalizedName()
getLocalizedName
in class Block
public Item getItemDropped(IBlockState state, java.util.Random rand, int fortune)
getItemDropped
in class Block
public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state)
protected int getDelay(IBlockState state)
getDelay
in class BlockRedstoneDiode
protected IBlockState getPoweredState(IBlockState unpoweredState)
getPoweredState
in class BlockRedstoneDiode
protected IBlockState getUnpoweredState(IBlockState poweredState)
getUnpoweredState
in class BlockRedstoneDiode
protected boolean isPowered(IBlockState state)
isPowered
in class BlockRedstoneDiode
protected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
getActiveSignal
in class BlockRedstoneDiode
protected boolean shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
shouldBePowered
in class BlockRedstoneDiode
protected int calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
calculateInputStrength
in class BlockRedstoneDiode
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
onBlockActivated
in class Block
protected void updateState(World worldIn, BlockPos pos, IBlockState state)
updateState
in class BlockRedstoneDiode
public void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick
in class BlockRedstoneDiode
public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded
in class BlockRedstoneDiode
public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock
in class Block
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param)
eventReceived
in class Block
public TileEntity createNewTileEntity(World worldIn, int meta)
createNewTileEntity
in interface ITileEntityProvider
public IBlockState getStateFromMeta(int meta)
getStateFromMeta
in class Block
public int getMetaFromState(IBlockState state)
getMetaFromState
in class Block
public IBlockState withRotation(IBlockState state, Rotation rot)
withRotation
in class Block
public IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror
in class Block
protected BlockStateContainer createBlockState()
createBlockState
in class Block
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
getStateForPlacement
in class BlockRedstoneDiode
public void onNeighborChange(IBlockAccess world, BlockPos pos, BlockPos neighbor)
Block
onNeighborChange
in class Block
world
- The worldpos
- Block position in worldneighbor
- Block position of neighborpublic boolean getWeakChanges(IBlockAccess world, BlockPos pos)
Block
getWeakChanges
in class Block
world
- The current worldpos
- Block position in world