Package net.minecraft.block
Class RedstoneDiodeBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.HorizontalBlock
net.minecraft.block.RedstoneDiodeBlock
- All Implemented Interfaces:
IItemProvider
,IForgeBlock
,IForgeRegistryEntry<Block>
- Direct Known Subclasses:
ComparatorBlock
,RepeaterBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Fields inherited from class net.minecraft.block.HorizontalBlock
FACING
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Fields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSurvive
(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_) protected void
checkTickOnNeighbor
(World p_176398_1_, BlockPos p_176398_2_, BlockState p_176398_3_) protected int
getAlternateSignal
(IWorldReader p_176407_1_, BlockPos p_176407_2_, BlockState p_176407_3_) protected int
getAlternateSignalAt
(IWorldReader p_176401_1_, BlockPos p_176401_2_, Direction p_176401_3_) protected abstract int
getDelay
(BlockState p_196346_1_) int
getDirectSignal
(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) protected int
getInputSignal
(World p_176397_1_, BlockPos p_176397_2_, BlockState p_176397_3_) protected int
getOutputSignal
(IBlockReader p_176408_1_, BlockPos p_176408_2_, BlockState p_176408_3_) getShape
(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) int
getSignal
(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) getStateForPlacement
(BlockItemUseContext p_196258_1_) protected boolean
isAlternateInput
(BlockState p_185545_1_) static boolean
isDiode
(BlockState p_185546_0_) boolean
isLocked
(IWorldReader p_176405_1_, BlockPos p_176405_2_, BlockState p_176405_3_) boolean
isSignalSource
(BlockState p_149744_1_) void
neighborChanged
(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) void
onPlace
(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) void
onRemove
(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) void
setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) boolean
shouldPrioritize
(IBlockReader p_176402_1_, BlockPos p_176402_2_, BlockState p_176402_3_) protected boolean
shouldTurnOn
(World p_176404_1_, BlockPos p_176404_2_, BlockState p_176404_3_) void
tick
(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) protected void
updateNeighborsInFront
(World p_176400_1_, BlockPos p_176400_2_, BlockState p_176400_3_) Methods inherited from class net.minecraft.block.HorizontalBlock
mirror, rotate
Methods inherited from class net.minecraft.block.Block
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
Methods inherited from class net.minecraft.block.AbstractBlock
attack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
Field Details
-
SHAPE
-
POWERED
-
-
Constructor Details
-
RedstoneDiodeBlock
-
-
Method Details
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) - Overrides:
getShape
in classAbstractBlock
-
canSurvive
- Overrides:
canSurvive
in classAbstractBlock
-
tick
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) - Overrides:
tick
in classAbstractBlock
-
getDirectSignal
public int getDirectSignal(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) - Overrides:
getDirectSignal
in classAbstractBlock
-
getSignal
public int getSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) - Overrides:
getSignal
in classAbstractBlock
-
neighborChanged
public void neighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) - Overrides:
neighborChanged
in classAbstractBlock
-
checkTickOnNeighbor
-
isLocked
-
shouldTurnOn
-
getInputSignal
-
getAlternateSignal
protected int getAlternateSignal(IWorldReader p_176407_1_, BlockPos p_176407_2_, BlockState p_176407_3_) -
getAlternateSignalAt
protected int getAlternateSignalAt(IWorldReader p_176401_1_, BlockPos p_176401_2_, Direction p_176401_3_) -
isSignalSource
- Overrides:
isSignalSource
in classAbstractBlock
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
setPlacedBy
public void setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) - Overrides:
setPlacedBy
in classBlock
-
onPlace
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) - Overrides:
onPlace
in classAbstractBlock
-
onRemove
public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) - Overrides:
onRemove
in classAbstractBlock
-
updateNeighborsInFront
protected void updateNeighborsInFront(World p_176400_1_, BlockPos p_176400_2_, BlockState p_176400_3_) -
isAlternateInput
-
getOutputSignal
protected int getOutputSignal(IBlockReader p_176408_1_, BlockPos p_176408_2_, BlockState p_176408_3_) -
isDiode
-
shouldPrioritize
public boolean shouldPrioritize(IBlockReader p_176402_1_, BlockPos p_176402_2_, BlockState p_176402_3_) -
getDelay
-