Package net.minecraft.block
Class BlockRedstoneComparator
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockDirectional
-
- net.minecraft.block.BlockRedstoneDiode
-
- net.minecraft.block.BlockRedstoneComparator
-
- All Implemented Interfaces:
ITileEntityProvider,org.teavm.jso.JSObject
public class BlockRedstoneComparator extends BlockRedstoneDiode implements ITileEntityProvider
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockRedstoneComparator.Mode-
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 static PropertyEnum<BlockRedstoneComparator.Mode>MODEstatic PropertyBoolPOWERED-
Fields inherited from class net.minecraft.block.BlockRedstoneDiode
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 Constructor Description BlockRedstoneComparator(boolean powered)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbootstrapStates()voidbreakBlock(World world, BlockPos blockpos, IBlockState iblockstate)protected intcalculateInputStrength(World worldIn, BlockPos pos, IBlockState state)protected BlockStatecreateBlockState()TileEntitycreateNewTileEntity(World var1, int var2)+ Returns a new instance of a block's tile entity class.protected intgetActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)protected intgetDelay(IBlockState state)ItemgetItem(World var1, BlockPos var2)ItemgetItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)+ Get the Item that this Block should drop when harvested.java.lang.StringgetLocalizedName()+ Gets the localized name of this block.intgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueprotected IBlockStategetPoweredState(IBlockState unpoweredState)IBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this Blockprotected IBlockStategetUnpoweredState(IBlockState poweredState)protected booleanisPowered(IBlockState state)booleanonBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)voidonBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)booleanonBlockEventReceived(World world, BlockPos blockpos, IBlockState iblockstate, int i, int j)+ Called on both Client and Server when World#addBlockEvent is calledIBlockStateonBlockPlaced(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 IBlockstateprotected booleanshouldBePowered(World worldIn, BlockPos pos, IBlockState state)protected voidupdateState(World worldIn, BlockPos pos, IBlockState state)voidupdateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)-
Methods inherited from class net.minecraft.block.BlockRedstoneDiode
canBlockStay, canPlaceBlockAt, canPowerSide, canProvidePower, getBlockLayer, getPowerOnSide, getPowerOnSides, getStrongPower, getTickDelay, getWeakPower, isAssociated, isAssociatedBlock, isFacingTowardsRepeater, isFullCube, isLocked, isOpaqueCube, isRedstoneRepeaterBlockID, notifyNeighbors, onBlockDestroyedByPlayer, onBlockPlacedBy, onNeighborBlockChange, randomTick, shouldSideBeRendered
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, 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, getLightOpacity, getLightValue, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, harvestBlock, hasComparatorInputOverride, hasTileEntity, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, 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
-
-
-
-
Field Detail
-
POWERED
public static final PropertyBool POWERED
-
MODE
public static PropertyEnum<BlockRedstoneComparator.Mode> MODE
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
getLocalizedName
public java.lang.String getLocalizedName()
+ Gets the localized name of this block. Used for the statistics page.- Overrides:
getLocalizedNamein classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDroppedin classBlock
-
getDelay
protected int getDelay(IBlockState state)
- Specified by:
getDelayin classBlockRedstoneDiode
-
getPoweredState
protected IBlockState getPoweredState(IBlockState unpoweredState)
- Specified by:
getPoweredStatein classBlockRedstoneDiode
-
getUnpoweredState
protected IBlockState getUnpoweredState(IBlockState poweredState)
- Specified by:
getUnpoweredStatein classBlockRedstoneDiode
-
isPowered
protected boolean isPowered(IBlockState state)
- Overrides:
isPoweredin classBlockRedstoneDiode
-
getActiveSignal
protected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
- Overrides:
getActiveSignalin classBlockRedstoneDiode
-
shouldBePowered
protected boolean shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
shouldBePoweredin classBlockRedstoneDiode
-
calculateInputStrength
protected int calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
calculateInputStrengthin classBlockRedstoneDiode
-
onBlockActivated
public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
- Overrides:
onBlockActivatedin classBlock
-
updateState
protected void updateState(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
updateStatein classBlockRedstoneDiode
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)
- Overrides:
updateTickin classBlockRedstoneDiode
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAddedin classBlockRedstoneDiode
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlockin classBlock
-
onBlockEventReceived
public boolean onBlockEventReceived(World world, BlockPos blockpos, IBlockState iblockstate, int i, int j)
+ Called on both Client and Server when World#addBlockEvent is called- Overrides:
onBlockEventReceivedin classBlock
-
createNewTileEntity
public TileEntity createNewTileEntity(World var1, int var2)
+ Returns a new instance of a block's tile entity class. Called on placing the block.- Specified by:
createNewTileEntityin interfaceITileEntityProvider
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein 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 classBlockRedstoneDiode
-
-