Package net.minecraft.world.level.block
Class RedStoneWireBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.RedStoneWireBlock
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IBlockExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RedStoneWireBlock>private static final Vec3[]private final BlockStateprotected static final intstatic final EnumProperty<RedstoneSide>protected static final intprotected static final intstatic final EnumProperty<RedstoneSide>private static final floatstatic final IntegerPropertystatic final Map<Direction,EnumProperty<RedstoneSide>> protected static final intprivate static final VoxelShapeprivate static final Map<BlockState,VoxelShape> private static final Map<Direction,VoxelShape> private static final Map<Direction,VoxelShape> private booleanstatic final EnumProperty<RedstoneSide>protected static final intstatic final EnumProperty<RedstoneSide>Fields inherited from class net.minecraft.world.level.block.BlockBLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidanimateTick(BlockState p_221932_, Level p_221933_, BlockPos p_221934_, RandomSource p_221935_) private VoxelShapecalculateShape(BlockState p_55643_) private intcalculateTargetStrength(Level p_55528_, BlockPos p_55529_) booleancanSurvive(BlockState p_55585_, LevelReader p_55586_, BlockPos p_55587_) private booleancanSurviveOn(BlockGetter p_55613_, BlockPos p_55614_, BlockState p_55615_) private voidcheckCornerChangeAt(Level p_55617_, BlockPos p_55618_) com.mojang.serialization.MapCodec<RedStoneWireBlock>codec()protected voidstatic intgetColorForPower(int p_55607_) private RedstoneSidegetConnectingSide(BlockGetter p_55519_, BlockPos p_55520_, Direction p_55521_) private RedstoneSidegetConnectingSide(BlockGetter p_55523_, BlockPos p_55524_, Direction p_55525_, boolean p_55526_) private BlockStategetConnectionState(BlockGetter p_55515_, BlockState p_55516_, BlockPos p_55517_) intgetDirectSignal(BlockState p_55625_, BlockGetter p_55626_, BlockPos p_55627_, Direction p_55628_) private BlockStategetMissingConnections(BlockGetter p_55609_, BlockState p_55610_, BlockPos p_55611_) getShape(BlockState p_55620_, BlockGetter p_55621_, BlockPos p_55622_, CollisionContext p_55623_) intgetSignal(BlockState p_55549_, BlockGetter p_55550_, BlockPos p_55551_, Direction p_55552_) getStateForPlacement(BlockPlaceContext p_55513_) private intgetWireSignal(BlockState p_55649_) private static booleanisCross(BlockState p_55645_) private static booleanisDot(BlockState p_55647_) booleanisSignalSource(BlockState p_55636_) mirror(BlockState p_55589_, Mirror p_55590_) voidneighborChanged(BlockState p_55561_, Level p_55562_, BlockPos p_55563_, Block p_55564_, BlockPos p_55565_, boolean p_55566_) voidonPlace(BlockState p_55630_, Level p_55631_, BlockPos p_55632_, BlockState p_55633_, boolean p_55634_) voidonRemove(BlockState p_55568_, Level p_55569_, BlockPos p_55570_, BlockState p_55571_, boolean p_55572_) rotate(BlockState p_55592_, Rotation p_55593_) protected static booleanshouldConnectTo(BlockState p_55641_) protected static booleanshouldConnectTo(BlockState p_55595_, Direction p_55596_) private voidspawnParticlesAlongLine(Level p_221923_, RandomSource p_221924_, BlockPos p_221925_, Vec3 p_221926_, Direction p_221927_, Direction p_221928_, float p_221929_, float p_221930_) voidupdateIndirectNeighbourShapes(BlockState p_55579_, LevelAccessor p_55580_, BlockPos p_55581_, int p_55582_, int p_55583_) private voidupdateNeighborsOfNeighboringWires(Level p_55638_, BlockPos p_55639_) private voidupdatePowerStrength(Level p_55531_, BlockPos p_55532_, BlockState p_55533_) updateShape(BlockState p_55598_, Direction p_55599_, BlockState p_55600_, LevelAccessor p_55601_, BlockPos p_55602_, BlockPos p_55603_) private voidupdatesOnShapeChange(Level p_55535_, BlockPos p_55536_, BlockState p_55537_, BlockState p_55538_) use(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, InteractionHand p_55558_, BlockHitResult p_55559_) Methods inherited from class net.minecraft.world.level.block.BlockappendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, onExplosionHit, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtensionaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
- 
Field Details- 
CODEC
- 
NORTH
- 
EAST
- 
SOUTH
- 
WEST
- 
POWER
- 
PROPERTY_BY_DIRECTION
- 
Hprotected static final int H- See Also:
 
- 
Wprotected static final int W- See Also:
 
- 
Eprotected static final int E- See Also:
 
- 
Nprotected static final int N- See Also:
 
- 
Sprotected static final int S- See Also:
 
- 
SHAPE_DOT
- 
SHAPES_FLOOR
- 
SHAPES_UP
- 
SHAPES_CACHE
- 
COLORS
- 
PARTICLE_DENSITYprivate static final float PARTICLE_DENSITY- See Also:
 
- 
crossState
- 
shouldSignalprivate boolean shouldSignal
 
- 
- 
Constructor Details- 
RedStoneWireBlock
 
- 
- 
Method Details- 
codec
- 
calculateShape
- 
getShapepublic VoxelShape getShape(BlockState p_55620_, BlockGetter p_55621_, BlockPos p_55622_, CollisionContext p_55623_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
getConnectionState
- 
getMissingConnectionsprivate BlockState getMissingConnections(BlockGetter p_55609_, BlockState p_55610_, BlockPos p_55611_) 
- 
updateShapepublic BlockState updateShape(BlockState p_55598_, Direction p_55599_, BlockState p_55600_, LevelAccessor p_55601_, BlockPos p_55602_, BlockPos p_55603_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
isCross
- 
isDot
- 
updateIndirectNeighbourShapespublic void updateIndirectNeighbourShapes(BlockState p_55579_, LevelAccessor p_55580_, BlockPos p_55581_, int p_55582_, int p_55583_) - Overrides:
- updateIndirectNeighbourShapesin class- BlockBehaviour
 
- 
getConnectingSide
- 
getConnectingSideprivate RedstoneSide getConnectingSide(BlockGetter p_55523_, BlockPos p_55524_, Direction p_55525_, boolean p_55526_) 
- 
canSurvive- Overrides:
- canSurvivein class- BlockBehaviour
 
- 
canSurviveOn
- 
updatePowerStrength
- 
calculateTargetStrength
- 
getWireSignal
- 
checkCornerChangeAt
- 
onPlacepublic void onPlace(BlockState p_55630_, Level p_55631_, BlockPos p_55632_, BlockState p_55633_, boolean p_55634_) - Overrides:
- onPlacein class- BlockBehaviour
 
- 
onRemovepublic void onRemove(BlockState p_55568_, Level p_55569_, BlockPos p_55570_, BlockState p_55571_, boolean p_55572_) - Overrides:
- onRemovein class- BlockBehaviour
 
- 
updateNeighborsOfNeighboringWires
- 
neighborChangedpublic void neighborChanged(BlockState p_55561_, Level p_55562_, BlockPos p_55563_, Block p_55564_, BlockPos p_55565_, boolean p_55566_) - Overrides:
- neighborChangedin class- BlockBehaviour
 
- 
getDirectSignalpublic int getDirectSignal(BlockState p_55625_, BlockGetter p_55626_, BlockPos p_55627_, Direction p_55628_) - Overrides:
- getDirectSignalin class- BlockBehaviour
 
- 
getSignalpublic int getSignal(BlockState p_55549_, BlockGetter p_55550_, BlockPos p_55551_, Direction p_55552_) - Overrides:
- getSignalin class- BlockBehaviour
 
- 
shouldConnectTo
- 
shouldConnectTo
- 
isSignalSource- Overrides:
- isSignalSourcein class- BlockBehaviour
 
- 
getColorForPowerpublic static int getColorForPower(int p_55607_) 
- 
spawnParticlesAlongLine
- 
animateTickpublic void animateTick(BlockState p_221932_, Level p_221933_, BlockPos p_221934_, RandomSource p_221935_) - Overrides:
- animateTickin class- Block
 
- 
rotate- Overrides:
- rotatein class- BlockBehaviour
 
- 
mirror- Overrides:
- mirrorin class- BlockBehaviour
 
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
usepublic InteractionResult use(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, InteractionHand p_55558_, BlockHitResult p_55559_) - Overrides:
- usein class- BlockBehaviour
 
- 
updatesOnShapeChangeprivate void updatesOnShapeChange(Level p_55535_, BlockPos p_55536_, BlockState p_55537_, BlockState p_55538_) 
 
-