public abstract class BlockRedstoneDiode extends BlockHorizontal
Block.EnumOffsetTypeIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isRepeaterPowered
Tells whether the repeater is powered or not
|
protected static AxisAlignedBB |
REDSTONE_DIODE_AABB |
FACINGBLOCK_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| 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) |
boolean |
canProvidePower(IBlockState state)
Can this block provide power.
|
protected int |
getActiveSignal(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
BlockRenderLayer |
getBlockLayer() |
AxisAlignedBB |
getBoundingBox(IBlockState state,
IBlockAccess source,
BlockPos pos) |
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) |
IBlockState |
getStateForPlacement(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
|
int |
getStrongPower(IBlockState blockState,
IBlockAccess blockAccess,
BlockPos pos,
EnumFacing side) |
protected int |
getTickDelay(IBlockState state) |
protected abstract IBlockState |
getUnpoweredState(IBlockState poweredState) |
int |
getWeakPower(IBlockState blockState,
IBlockAccess blockAccess,
BlockPos pos,
EnumFacing side) |
protected boolean |
isAlternateInput(IBlockState state) |
boolean |
isAssociatedBlock(Block other) |
static boolean |
isDiode(IBlockState state) |
boolean |
isFacingTowardsRepeater(World worldIn,
BlockPos pos,
IBlockState state) |
boolean |
isFullCube(IBlockState state) |
boolean |
isLocked(IBlockAccess worldIn,
BlockPos pos,
IBlockState state) |
boolean |
isOpaqueCube(IBlockState state)
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
protected boolean |
isPowered(IBlockState state) |
boolean |
isSameDiode(IBlockState state) |
void |
neighborChanged(IBlockState state,
World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos)
Called when a neighboring block was changed and marks that this state should perform any checks during a neighbor
change.
|
protected void |
notifyNeighbors(World worldIn,
BlockPos pos,
IBlockState state) |
void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState state)
Called after the block is set in the Chunk data, but before the Tile Entity is set
|
void |
onBlockDestroyedByPlayer(World worldIn,
BlockPos pos,
IBlockState state)
Called when a player destroys this Block
|
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 |
randomTick(World worldIn,
BlockPos pos,
IBlockState state,
java.util.Random random)
Called randomly when setTickRandomly is set to true (used by e.g.
|
boolean |
rotateBlock(World world,
BlockPos pos,
EnumFacing axis)
Rotate the block.
|
protected boolean |
shouldBePowered(World worldIn,
BlockPos pos,
IBlockState state) |
boolean |
shouldSideBeRendered(IBlockState blockState,
IBlockAccess blockAccess,
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) |
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, breakBlock, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createBlockState, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateFromMeta, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, 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, isWood, modifyAcceleration, observedNeighborChange, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, withMirror, withRotationgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameprotected static final AxisAlignedBB REDSTONE_DIODE_AABB
protected final boolean isRepeaterPowered
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
getBoundingBox in class Blockpublic boolean isFullCube(IBlockState state)
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(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
shouldSideBeRendered in class Blockprotected boolean isPowered(IBlockState state)
public int getStrongPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
getStrongPower in class Blockpublic int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
getWeakPower in class Blockpublic void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
neighborChanged 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(IBlockState state)
canProvidePower in class Blockpublic IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
getStateForPlacement 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(IBlockState state)
isOpaqueCube in class Blockprotected boolean isAlternateInput(IBlockState state)
protected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
public static boolean isDiode(IBlockState state)
public boolean isSameDiode(IBlockState state)
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 BlockRenderLayer getBlockLayer()
getBlockLayer in class Blockpublic boolean rotateBlock(World world, BlockPos pos, EnumFacing axis)
BlockrotateBlock in class Blockworld - The worldpos - Block position in worldaxis - The axis to rotate around