public class BlockObserver extends BlockDirectional
Block.EnumOffsetTypeIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description | 
|---|---|
| static PropertyBool | POWERED | 
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| Constructor and Description | 
|---|
| BlockObserver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | breakBlock(World worldIn,
          BlockPos pos,
          IBlockState state) | 
| boolean | canProvidePower(IBlockState state) | 
| protected BlockStateContainer | createBlockState() | 
| int | getMetaFromState(IBlockState state) | 
| IBlockState | getStateForPlacement(World worldIn,
                    BlockPos pos,
                    EnumFacing facing,
                    float hitX,
                    float hitY,
                    float hitZ,
                    int meta,
                    EntityLivingBase placer) | 
| IBlockState | getStateFromMeta(int meta) | 
| int | getStrongPower(IBlockState blockState,
              IBlockAccess blockAccess,
              BlockPos pos,
              EnumFacing side) | 
| int | getWeakPower(IBlockState blockState,
            IBlockAccess blockAccess,
            BlockPos pos,
            EnumFacing side) | 
| void | neighborChanged(IBlockState state,
               World worldIn,
               BlockPos pos,
               Block blockIn,
               BlockPos fromPos) | 
| void | observedNeighborChange(IBlockState observerState,
                      World world,
                      BlockPos observerPos,
                      Block changedBlock,
                      BlockPos changedBlockPos)Called on an Observer block whenever an update for an Observer is received. | 
| void | observedNeighborChanged(IBlockState p_190962_1_,
                       World p_190962_2_,
                       BlockPos p_190962_3_,
                       Block p_190962_4_,
                       BlockPos p_190962_5_) | 
| void | onBlockAdded(World worldIn,
            BlockPos pos,
            IBlockState state) | 
| protected void | updateNeighborsInFront(World p_190961_1_,
                      BlockPos p_190961_2_,
                      IBlockState p_190961_3_) | 
| void | updateTick(World worldIn,
          BlockPos pos,
          IBlockState state,
          java.util.Random rand) | 
| IBlockState | withMirror(IBlockState state,
          Mirror mirrorIn) | 
| IBlockState | withRotation(IBlockState state,
            Rotation rot) | 
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getBoundingBox, 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, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullCube, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isOpaqueCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isWood, modifyAcceleration, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toStringgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic static final PropertyBool POWERED
protected BlockStateContainer createBlockState()
createBlockState in class Blockpublic IBlockState withRotation(IBlockState state, Rotation rot)
withRotation in class Blockpublic IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror in class Blockpublic void updateTick(World worldIn, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick in class Blockpublic void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
neighborChanged in class Blockpublic void observedNeighborChanged(IBlockState p_190962_1_, World p_190962_2_, BlockPos p_190962_3_, Block p_190962_4_, BlockPos p_190962_5_)
protected void updateNeighborsInFront(World p_190961_1_, BlockPos p_190961_2_, IBlockState p_190961_3_)
public boolean canProvidePower(IBlockState state)
canProvidePower in class Blockpublic 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 onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
onBlockAdded in class Blockpublic void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock 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 int getMetaFromState(IBlockState state)
getMetaFromState in class Blockpublic IBlockState getStateFromMeta(int meta)
getStateFromMeta in class Blockpublic void observedNeighborChange(IBlockState observerState, World world, BlockPos observerPos, Block changedBlock, BlockPos changedBlockPos)
BlockobservedNeighborChange in class BlockobserverState - The Observer block's state.world - The current world.observerPos - The Observer block's position.changedBlock - The updated block.changedBlockPos - The updated block's position.