Package net.minecraft.block
Class BlockRedstoneDiode
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockDirectional
-
- net.minecraft.block.BlockRedstoneDiode
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockRedstoneComparator,BlockRedstoneRepeater
public abstract class BlockRedstoneDiode extends BlockDirectional
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisRepeaterPowered-
Fields inherited from class net.minecraft.block.BlockDirectional
FACING
-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockRedstoneDiode(boolean powered)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intcalculateInputStrength(World world, BlockPos blockpos, IBlockState iblockstate)booleancanBlockStay(World worldIn, BlockPos pos)booleancanPlaceBlockAt(World world, BlockPos blockpos)protected booleancanPowerSide(Block blockIn)booleancanProvidePower()+ Can this block provide power.protected intgetActiveSignal(IBlockAccess var1, BlockPos var2, IBlockState var3)EnumWorldBlockLayergetBlockLayer()protected abstract intgetDelay(IBlockState var1)protected abstract IBlockStategetPoweredState(IBlockState var1)protected intgetPowerOnSide(IBlockAccess worldIn, BlockPos pos, EnumFacing side)protected intgetPowerOnSides(IBlockAccess worldIn, BlockPos pos, IBlockState state)intgetStrongPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)protected intgetTickDelay(IBlockState state)protected abstract IBlockStategetUnpoweredState(IBlockState var1)intgetWeakPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)booleanisAssociated(Block other)booleanisAssociatedBlock(Block block)booleanisFacingTowardsRepeater(World worldIn, BlockPos pos, IBlockState state)booleanisFullCube()booleanisLocked(IBlockAccess worldIn, BlockPos pos, IBlockState state)booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderprotected booleanisPowered(IBlockState var1)static booleanisRedstoneRepeaterBlockID(Block blockIn)protected voidnotifyNeighbors(World worldIn, BlockPos pos, IBlockState state)voidonBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)voidonBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)+ Called when a player destroys this BlockIBlockStateonBlockPlaced(World var1, BlockPos var2, EnumFacing var3, float var4, float var5, float var6, int var7, EntityLivingBase entitylivingbase)+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstatevoidonBlockPlacedBy(World world, BlockPos blockpos, IBlockState iblockstate, EntityLivingBase var4, ItemStack var5)+ Called by ItemBlocks after a block is set in the world, to allow post-place logicvoidonNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)+ Called when a neighboring block changes.voidrandomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4)+ Called randomly when setTickRandomly is set to true (used by e.g.protected booleanshouldBePowered(World world, BlockPos blockpos, IBlockState iblockstate)booleanshouldSideBeRendered(IBlockAccess var1, BlockPos var2, EnumFacing enumfacing)protected voidupdateState(World world, BlockPos blockpos, IBlockState iblockstate)voidupdateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createBlockState, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, harvestBlock, hasComparatorInputOverride, hasTileEntity, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockEventReceived, onBlockHarvested, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, tickRate, toString
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Method Detail
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin classBlock
-
randomTick
public void randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4)
+ Called randomly when setTickRandomly is set to true (used by e.g. crops to grow, etc.)- Overrides:
randomTickin classBlock
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)
- Overrides:
updateTickin classBlock
-
shouldSideBeRendered
public boolean shouldSideBeRendered(IBlockAccess var1, BlockPos var2, EnumFacing enumfacing)
- Overrides:
shouldSideBeRenderedin classBlock
-
isPowered
protected boolean isPowered(IBlockState var1)
-
getStrongPower
public int getStrongPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
- Overrides:
getStrongPowerin classBlock
-
getWeakPower
public int getWeakPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
- Overrides:
getWeakPowerin classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChangein classBlock
-
updateState
protected void updateState(World world, BlockPos blockpos, IBlockState iblockstate)
-
isLocked
public boolean isLocked(IBlockAccess worldIn, BlockPos pos, IBlockState state)
-
shouldBePowered
protected boolean shouldBePowered(World world, BlockPos blockpos, IBlockState iblockstate)
-
calculateInputStrength
protected int calculateInputStrength(World world, BlockPos blockpos, IBlockState iblockstate)
-
getPowerOnSides
protected int getPowerOnSides(IBlockAccess worldIn, BlockPos pos, IBlockState state)
-
getPowerOnSide
protected int getPowerOnSide(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
-
canProvidePower
public boolean canProvidePower()
+ Can this block provide power. Only wire currently seems to have this change based on its state.- Overrides:
canProvidePowerin classBlock
-
onBlockPlaced
public IBlockState onBlockPlaced(World var1, BlockPos var2, EnumFacing var3, float var4, float var5, float var6, int var7, EntityLivingBase entitylivingbase)
+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate- Overrides:
onBlockPlacedin classBlock
-
onBlockPlacedBy
public void onBlockPlacedBy(World world, BlockPos blockpos, IBlockState iblockstate, EntityLivingBase var4, ItemStack var5)
+ Called by ItemBlocks after a block is set in the world, to allow post-place logic- Overrides:
onBlockPlacedByin classBlock
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAddedin classBlock
-
notifyNeighbors
protected void notifyNeighbors(World worldIn, BlockPos pos, IBlockState state)
-
onBlockDestroyedByPlayer
public void onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this Block- Overrides:
onBlockDestroyedByPlayerin classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
canPowerSide
protected boolean canPowerSide(Block blockIn)
-
getActiveSignal
protected int getActiveSignal(IBlockAccess var1, BlockPos var2, IBlockState var3)
-
isRedstoneRepeaterBlockID
public static boolean isRedstoneRepeaterBlockID(Block blockIn)
-
isAssociated
public boolean isAssociated(Block other)
-
isFacingTowardsRepeater
public boolean isFacingTowardsRepeater(World worldIn, BlockPos pos, IBlockState state)
-
getTickDelay
protected int getTickDelay(IBlockState state)
-
getDelay
protected abstract int getDelay(IBlockState var1)
-
getPoweredState
protected abstract IBlockState getPoweredState(IBlockState var1)
-
getUnpoweredState
protected abstract IBlockState getUnpoweredState(IBlockState var1)
-
isAssociatedBlock
public boolean isAssociatedBlock(Block block)
- Overrides:
isAssociatedBlockin classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
-