类 RedStoneWireBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.RedStoneWireBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IBlockExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.ShapePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<RedStoneWireBlock> private static final int[]
private final BlockState
static final EnumProperty
<RedstoneSide> private final RedstoneWireEvaluator
static final EnumProperty
<RedstoneSide> private static final float
static final IntegerProperty
static final Map
<Direction, EnumProperty<RedstoneSide>> private final Function
<BlockState, VoxelShape> private boolean
static final EnumProperty
<RedstoneSide> static final EnumProperty
<RedstoneSide> 从类继承的字段 net.minecraft.world.level.block.Block
BLOCK_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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
affectNeighborsAfterRemoval
(BlockState p_393608_, ServerLevel p_393706_, BlockPos p_394400_, boolean p_393564_) void
animateTick
(BlockState p_221932_, Level p_221933_, BlockPos p_221934_, RandomSource p_221935_) protected boolean
canSurvive
(BlockState p_55585_, LevelReader p_55586_, BlockPos p_55587_) private boolean
canSurviveOn
(BlockGetter p_55613_, BlockPos p_55614_, BlockState p_55615_) private void
checkCornerChangeAt
(Level p_55617_, BlockPos p_55618_) com.mojang.serialization.MapCodec
<RedStoneWireBlock> codec()
protected void
int
getBlockSignal
(Level p_360310_, BlockPos p_361281_) static int
getColorForPower
(int p_55607_) private RedstoneSide
getConnectingSide
(BlockGetter p_55519_, BlockPos p_55520_, Direction p_55521_) private RedstoneSide
getConnectingSide
(BlockGetter p_55523_, BlockPos p_55524_, Direction p_55525_, boolean p_55526_) private BlockState
getConnectionState
(BlockGetter p_55515_, BlockState p_55516_, BlockPos p_55517_) protected int
getDirectSignal
(BlockState p_55625_, BlockGetter p_55626_, BlockPos p_55627_, Direction p_55628_) private BlockState
getMissingConnections
(BlockGetter p_55609_, BlockState p_55610_, BlockPos p_55611_) protected VoxelShape
getShape
(BlockState p_55620_, BlockGetter p_55621_, BlockPos p_55622_, CollisionContext p_55623_) protected int
getSignal
(BlockState p_55549_, BlockGetter p_55550_, BlockPos p_55551_, Direction p_55552_) getStateForPlacement
(BlockPlaceContext p_55513_) private static boolean
isCross
(BlockState p_55645_) private static boolean
isDot
(BlockState p_55647_) protected boolean
isSignalSource
(BlockState p_55636_) private Function
<BlockState, VoxelShape> protected BlockState
mirror
(BlockState p_55589_, Mirror p_55590_) protected void
neighborChanged
(BlockState p_55561_, Level p_55562_, BlockPos p_55563_, Block p_55564_, Orientation p_362973_, boolean p_55566_) protected void
onPlace
(BlockState p_55630_, Level p_55631_, BlockPos p_55632_, BlockState p_55633_, boolean p_55634_) protected BlockState
rotate
(BlockState p_55592_, Rotation p_55593_) protected static boolean
shouldConnectTo
(BlockState p_55641_) protected static boolean
shouldConnectTo
(BlockState p_55595_, Direction p_55596_) private static void
spawnParticlesAlongLine
(Level p_221923_, RandomSource p_221924_, BlockPos p_221925_, int p_380943_, Direction p_221927_, Direction p_221928_, float p_221929_, float p_221930_) protected void
updateIndirectNeighbourShapes
(BlockState p_55579_, LevelAccessor p_55580_, BlockPos p_55581_, int p_55582_, int p_55583_) private void
updateNeighborsOfNeighboringWires
(Level p_55638_, BlockPos p_55639_) private void
updatePowerStrength
(Level p_55531_, BlockPos p_55532_, BlockState p_55533_, Orientation p_362758_, boolean p_366538_) protected BlockState
updateShape
(BlockState p_55598_, LevelReader p_374191_, ScheduledTickAccess p_374077_, BlockPos p_55602_, Direction p_55599_, BlockPos p_55603_, BlockState p_55600_, RandomSource p_374364_) private void
updatesOnShapeChange
(Level p_55535_, BlockPos p_55536_, BlockState p_55537_, BlockState p_55538_) private static boolean
useExperimentalEvaluator
(Level p_360594_) protected InteractionResult
useWithoutItem
(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) 从类继承的方法 net.minecraft.world.level.block.Block
asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, cube, cube, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, useItemOn, useShapeForLightOcclusion
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
字段详细资料
-
CODEC
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
POWER
-
PROPERTY_BY_DIRECTION
-
COLORS
private static final int[] COLORS -
PARTICLE_DENSITY
private static final float PARTICLE_DENSITY- 另请参阅:
-
shapes
-
crossState
-
evaluator
-
shouldSignal
private boolean shouldSignal
-
-
构造器详细资料
-
RedStoneWireBlock
-
-
方法详细资料
-
codec
-
makeShapes
-
getShape
protected VoxelShape getShape(BlockState p_55620_, BlockGetter p_55621_, BlockPos p_55622_, CollisionContext p_55623_) - 覆盖:
getShape
在类中BlockBehaviour
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
getConnectionState
-
getMissingConnections
private BlockState getMissingConnections(BlockGetter p_55609_, BlockState p_55610_, BlockPos p_55611_) -
updateShape
protected BlockState updateShape(BlockState p_55598_, LevelReader p_374191_, ScheduledTickAccess p_374077_, BlockPos p_55602_, Direction p_55599_, BlockPos p_55603_, BlockState p_55600_, RandomSource p_374364_) - 覆盖:
updateShape
在类中BlockBehaviour
-
isCross
-
isDot
-
updateIndirectNeighbourShapes
protected void updateIndirectNeighbourShapes(BlockState p_55579_, LevelAccessor p_55580_, BlockPos p_55581_, int p_55582_, int p_55583_) -
getConnectingSide
-
getConnectingSide
private RedstoneSide getConnectingSide(BlockGetter p_55523_, BlockPos p_55524_, Direction p_55525_, boolean p_55526_) -
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
canSurviveOn
-
updatePowerStrength
private void updatePowerStrength(Level p_55531_, BlockPos p_55532_, BlockState p_55533_, @Nullable Orientation p_362758_, boolean p_366538_) -
getBlockSignal
-
checkCornerChangeAt
-
onPlace
protected void onPlace(BlockState p_55630_, Level p_55631_, BlockPos p_55632_, BlockState p_55633_, boolean p_55634_) - 覆盖:
onPlace
在类中BlockBehaviour
-
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(BlockState p_393608_, ServerLevel p_393706_, BlockPos p_394400_, boolean p_393564_) -
updateNeighborsOfNeighboringWires
-
neighborChanged
protected void neighborChanged(BlockState p_55561_, Level p_55562_, BlockPos p_55563_, Block p_55564_, @Nullable Orientation p_362973_, boolean p_55566_) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
useExperimentalEvaluator
-
getDirectSignal
protected int getDirectSignal(BlockState p_55625_, BlockGetter p_55626_, BlockPos p_55627_, Direction p_55628_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
getSignal
protected int getSignal(BlockState p_55549_, BlockGetter p_55550_, BlockPos p_55551_, Direction p_55552_) - 覆盖:
getSignal
在类中BlockBehaviour
-
shouldConnectTo
-
shouldConnectTo
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
getColorForPower
public static int getColorForPower(int p_55607_) -
spawnParticlesAlongLine
private static void spawnParticlesAlongLine(Level p_221923_, RandomSource p_221924_, BlockPos p_221925_, int p_380943_, Direction p_221927_, Direction p_221928_, float p_221929_, float p_221930_) -
animateTick
public void animateTick(BlockState p_221932_, Level p_221933_, BlockPos p_221934_, RandomSource p_221935_) - 覆盖:
animateTick
在类中Block
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
useWithoutItem
protected InteractionResult useWithoutItem(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) - 覆盖:
useWithoutItem
在类中BlockBehaviour
-
updatesOnShapeChange
private void updatesOnShapeChange(Level p_55535_, BlockPos p_55536_, BlockState p_55537_, BlockState p_55538_)
-