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 class
BlockRedstoneComparator.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>
MODE
static PropertyBool
POWERED
-
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 void
bootstrapStates()
void
breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
protected int
calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
protected BlockState
createBlockState()
TileEntity
createNewTileEntity(World var1, int var2)
+ Returns a new instance of a block's tile entity class.protected int
getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
protected int
getDelay(IBlockState state)
Item
getItem(World var1, BlockPos var2)
Item
getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.java.lang.String
getLocalizedName()
+ Gets the localized name of this block.int
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueprotected IBlockState
getPoweredState(IBlockState unpoweredState)
IBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockprotected IBlockState
getUnpoweredState(IBlockState poweredState)
protected boolean
isPowered(IBlockState state)
boolean
onBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
void
onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
boolean
onBlockEventReceived(World world, BlockPos blockpos, IBlockState iblockstate, int i, int j)
+ Called on both Client and Server when World#addBlockEvent is calledIBlockState
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 IBlockstateprotected boolean
shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
protected void
updateState(World worldIn, BlockPos pos, IBlockState state)
void
updateTick(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:
getLocalizedName
in classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in classBlock
-
getDelay
protected int getDelay(IBlockState state)
- Specified by:
getDelay
in classBlockRedstoneDiode
-
getPoweredState
protected IBlockState getPoweredState(IBlockState unpoweredState)
- Specified by:
getPoweredState
in classBlockRedstoneDiode
-
getUnpoweredState
protected IBlockState getUnpoweredState(IBlockState poweredState)
- Specified by:
getUnpoweredState
in classBlockRedstoneDiode
-
isPowered
protected boolean isPowered(IBlockState state)
- Overrides:
isPowered
in classBlockRedstoneDiode
-
getActiveSignal
protected int getActiveSignal(IBlockAccess worldIn, BlockPos pos, IBlockState state)
- Overrides:
getActiveSignal
in classBlockRedstoneDiode
-
shouldBePowered
protected boolean shouldBePowered(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
shouldBePowered
in classBlockRedstoneDiode
-
calculateInputStrength
protected int calculateInputStrength(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
calculateInputStrength
in classBlockRedstoneDiode
-
onBlockActivated
public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
- Overrides:
onBlockActivated
in classBlock
-
updateState
protected void updateState(World worldIn, BlockPos pos, IBlockState state)
- Overrides:
updateState
in classBlockRedstoneDiode
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)
- Overrides:
updateTick
in classBlockRedstoneDiode
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
onBlockAdded
in classBlockRedstoneDiode
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlock
in 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:
onBlockEventReceived
in 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:
createNewTileEntity
in interfaceITileEntityProvider
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMeta
in classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromState
in classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
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 classBlockRedstoneDiode
-
-