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 boolean
isRepeaterPowered
-
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 protected
BlockRedstoneDiode(boolean powered)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected int
calculateInputStrength(World world, BlockPos blockpos, IBlockState iblockstate)
boolean
canBlockStay(World worldIn, BlockPos pos)
boolean
canPlaceBlockAt(World world, BlockPos blockpos)
protected boolean
canPowerSide(Block blockIn)
boolean
canProvidePower()
+ Can this block provide power.protected int
getActiveSignal(IBlockAccess var1, BlockPos var2, IBlockState var3)
EnumWorldBlockLayer
getBlockLayer()
protected abstract int
getDelay(IBlockState var1)
protected abstract IBlockState
getPoweredState(IBlockState var1)
protected int
getPowerOnSide(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
protected int
getPowerOnSides(IBlockAccess worldIn, BlockPos pos, IBlockState state)
int
getStrongPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
protected int
getTickDelay(IBlockState state)
protected abstract IBlockState
getUnpoweredState(IBlockState var1)
int
getWeakPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
boolean
isAssociated(Block other)
boolean
isAssociatedBlock(Block block)
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 renderprotected boolean
isPowered(IBlockState var1)
static boolean
isRedstoneRepeaterBlockID(Block blockIn)
protected void
notifyNeighbors(World worldIn, BlockPos pos, IBlockState state)
void
onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
void
onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this BlockIBlockState
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 IBlockstatevoid
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 logicvoid
onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.void
randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4)
+ Called randomly when setTickRandomly is set to true (used by e.g.protected boolean
shouldBePowered(World world, BlockPos blockpos, IBlockState iblockstate)
boolean
shouldSideBeRendered(IBlockAccess var1, BlockPos var2, EnumFacing enumfacing)
protected void
updateState(World world, BlockPos blockpos, IBlockState iblockstate)
void
updateTick(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:
isFullCube
in classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAt
in 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:
randomTick
in classBlock
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)
- Overrides:
updateTick
in classBlock
-
shouldSideBeRendered
public boolean shouldSideBeRendered(IBlockAccess var1, BlockPos var2, EnumFacing enumfacing)
- Overrides:
shouldSideBeRendered
in classBlock
-
isPowered
protected boolean isPowered(IBlockState var1)
-
getStrongPower
public int getStrongPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
- Overrides:
getStrongPower
in classBlock
-
getWeakPower
public int getWeakPower(IBlockAccess iblockaccess, BlockPos blockpos, IBlockState iblockstate, EnumFacing enumfacing)
- Overrides:
getWeakPower
in classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChange
in 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:
canProvidePower
in 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:
onBlockPlaced
in 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:
onBlockPlacedBy
in classBlock
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAdded
in 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:
onBlockDestroyedByPlayer
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in 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:
isAssociatedBlock
in classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayer
in classBlock
-
-