public abstract class BlockRedstoneDiode extends BlockDirectional
Block.EnumOffsetType, Block.SoundType| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isRepeaterPowered
Tells whether the repeater is powered or not
|
FACINGBLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, capturedDrops, captureDrops, delegate, enableStats, field_181083_K, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, RANDOM, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness| Modifier | Constructor and Description |
|---|---|
protected |
BlockRedstoneDiode(boolean powered) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateInputStrength(World worldIn,
BlockPos pos,
IBlockState state) |
boolean |
canBlockStay(World worldIn,
BlockPos pos) |
boolean |
canPlaceBlockAt(World worldIn,
BlockPos pos) |
protected boolean |
canPowerSide(Block blockIn) |
boolean |
canProvidePower()
Can this block provide power.
|
protected int |
getActiveSignal(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
EnumWorldBlockLayer |
getBlockLayer() |
protected abstract int |
getDelay(IBlockState state) |
protected abstract IBlockState |
getPoweredState(IBlockState unpoweredState) |
protected int |
getPowerOnSide(IBlockAccess worldIn,
BlockPos pos,
EnumFacing side) |
protected int |
getPowerOnSides(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
int |
getStrongPower(IBlockAccess worldIn,
BlockPos pos,
IBlockState state,
EnumFacing side) |
protected int |
getTickDelay(IBlockState state) |
protected abstract IBlockState |
getUnpoweredState(IBlockState poweredState) |
int |
getWeakPower(IBlockAccess worldIn,
BlockPos pos,
IBlockState state,
EnumFacing side) |
boolean |
isAssociated(Block other) |
boolean |
isAssociatedBlock(Block other) |
boolean |
isFacingTowardsRepeater(World worldIn,
BlockPos pos,
IBlockState state) |
boolean |
isFullCube() |
boolean |
isLocked(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
boolean |
isOpaqueCube()
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
protected boolean |
isPowered(IBlockState state) |
static boolean |
isRedstoneRepeaterBlockID(Block blockIn) |
protected void |
notifyNeighbors(World worldIn,
BlockPos pos,
IBlockState state) |
void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState state) |
void |
onBlockDestroyedByPlayer(World worldIn,
BlockPos pos,
IBlockState state)
Called when a player destroys this Block
|
IBlockState |
onBlockPlaced(World worldIn,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer)
Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the
IBlockstate
|
void |
onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack)
Called by ItemBlocks after a block is set in the world, to allow post-place logic
|
void |
onNeighborBlockChange(World worldIn,
BlockPos pos,
IBlockState state,
Block neighborBlock)
Called when a neighboring block changes.
|
void |
randomTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random random)
Called randomly when setTickRandomly is set to true (used by e.g. crops to grow, etc.)
|
protected boolean |
shouldBePowered(World worldIn,
BlockPos pos,
IBlockState state) |
boolean |
shouldSideBeRendered(IBlockAccess worldIn,
BlockPos pos,
EnumFacing side) |
protected void |
updateState(World worldIn,
BlockPos pos,
IBlockState state) |
void |
updateTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
addCollisionBoxesToList, addDestroyEffects, addHitEffects, addLandingEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, colorMultiplier, colorMultiplier, createBlockState, createStackedBlock, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getRegistryName, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockEventReceived, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setRegistryName, setRegistryName, setRegistryName, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toStringprotected final boolean isRepeaterPowered
public boolean isFullCube()
isFullCube in class Blockpublic boolean canPlaceBlockAt(World worldIn, BlockPos pos)
canPlaceBlockAt in class Blockpublic void randomTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random random)
randomTick in class Blockpublic void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick in class Blockpublic boolean shouldSideBeRendered(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
shouldSideBeRendered in class Blockprotected boolean isPowered(IBlockState state)
public int getStrongPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
getStrongPower in class Blockpublic int getWeakPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
getWeakPower in class Blockpublic void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)
onNeighborBlockChange in class Blockprotected void updateState(World worldIn, BlockPos pos, IBlockState state)
public boolean isLocked(IBlockAccess worldIn, BlockPos pos, IBlockState state)
protected boolean shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
protected int calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
protected int getPowerOnSides(IBlockAccess worldIn, BlockPos pos, IBlockState state)
protected int getPowerOnSide(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
public boolean canProvidePower()
canProvidePower in class Blockpublic IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
onBlockPlaced in class Blockpublic void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
onBlockPlacedBy in class Blockpublic void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded in class Blockprotected void notifyNeighbors(World worldIn, BlockPos pos, IBlockState state)
public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state)
onBlockDestroyedByPlayer in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockprotected boolean canPowerSide(Block blockIn)
protected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
public static boolean isRedstoneRepeaterBlockID(Block blockIn)
public boolean isAssociated(Block other)
public boolean isFacingTowardsRepeater(World worldIn, BlockPos pos, IBlockState state)
protected int getTickDelay(IBlockState state)
protected abstract int getDelay(IBlockState state)
protected abstract IBlockState getPoweredState(IBlockState unpoweredState)
protected abstract IBlockState getUnpoweredState(IBlockState poweredState)
public boolean isAssociatedBlock(Block other)
isAssociatedBlock in class Blockpublic EnumWorldBlockLayer getBlockLayer()
getBlockLayer in class Block