类 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
,IForgeBlock
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.BlockStatePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明private static final Vec3[]
private final BlockState
protected static final int
static final EnumProperty<RedstoneSide>
protected static final int
protected static final int
static final EnumProperty<RedstoneSide>
private static final float
static final IntegerProperty
static final Map<Direction,
EnumProperty<RedstoneSide>> protected static final int
private static final VoxelShape
private static final Map<BlockState,
VoxelShape> private static final Map<Direction,
VoxelShape> private static final Map<Direction,
VoxelShape> private boolean
static final EnumProperty<RedstoneSide>
protected static final int
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_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
animateTick
(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) private VoxelShape
calculateShape
(BlockState pState) private int
calculateTargetStrength
(Level pLevel, BlockPos pPos) boolean
canSurvive
(BlockState pState, LevelReader pLevel, BlockPos pPos) private boolean
canSurviveOn
(BlockGetter pLevel, BlockPos pPos, BlockState pState) private void
checkCornerChangeAt
(Level pLevel, BlockPos pPos) protected void
static int
getColorForPower
(int pPower) private RedstoneSide
getConnectingSide
(BlockGetter pLevel, BlockPos pPos, Direction pFace) private RedstoneSide
getConnectingSide
(BlockGetter pLevel, BlockPos pPos, Direction pDirection, boolean pNonNormalCubeAbove) private BlockState
getConnectionState
(BlockGetter pLevel, BlockState pState, BlockPos pPos) int
getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) private BlockState
getMissingConnections
(BlockGetter pLevel, BlockState pState, BlockPos pPos) getShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) int
getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) getStateForPlacement
(BlockPlaceContext pContext) private int
getWireSignal
(BlockState pState) private static boolean
isCross
(BlockState pState) private static boolean
isDot
(BlockState pState) boolean
isSignalSource
(BlockState pState) mirror
(BlockState pState, Mirror pMirror) void
neighborChanged
(BlockState pState, Level pLevel, BlockPos pPos, Block pBlock, BlockPos pFromPos, boolean pIsMoving) void
onPlace
(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) void
onRemove
(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) rotate
(BlockState pState, Rotation pRotation) protected static boolean
shouldConnectTo
(BlockState pState) protected static boolean
shouldConnectTo
(BlockState pState, Direction pDirection) private void
spawnParticlesAlongLine
(Level pLevel, RandomSource pRandom, BlockPos pPos, Vec3 pParticleVec, Direction pXDirection, Direction pZDirection, float pMin, float pMax) void
updateIndirectNeighbourShapes
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) private void
updateNeighborsOfNeighboringWires
(Level pLevel, BlockPos pPos) private void
updatePowerStrength
(Level pLevel, BlockPos pPos, BlockState pState) updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) private void
updatesOnShapeChange
(Level pLevel, BlockPos pPos, BlockState pOldState, BlockState pNewState) use
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) 从类继承的方法 net.minecraft.world.level.block.Block
appendHoverText, 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, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, 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, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, tick, triggerEvent, useShapeForLightOcclusion
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, 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, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
字段详细资料
-
NORTH
-
EAST
-
SOUTH
-
WEST
-
POWER
-
PROPERTY_BY_DIRECTION
-
H
protected static final int H- 另请参阅:
-
W
protected static final int W- 另请参阅:
-
E
protected static final int E- 另请参阅:
-
N
protected static final int N- 另请参阅:
-
S
protected static final int S- 另请参阅:
-
SHAPE_DOT
-
SHAPES_FLOOR
-
SHAPES_UP
-
SHAPES_CACHE
-
COLORS
-
PARTICLE_DENSITY
private static final float PARTICLE_DENSITY- 另请参阅:
-
crossState
-
shouldSignal
private boolean shouldSignal
-
-
构造器详细资料
-
RedStoneWireBlock
-
-
方法详细资料
-
calculateShape
-
getShape
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - 覆盖:
getShape
在类中BlockBehaviour
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
getConnectionState
-
getMissingConnections
-
updateShape
public BlockState updateShape(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) - 覆盖:
updateShape
在类中BlockBehaviour
-
isCross
-
isDot
-
updateIndirectNeighbourShapes
public void updateIndirectNeighbourShapes(BlockState pState, LevelAccessor pLevel, BlockPos pPos, int pFlags, int pRecursionLeft) -
getConnectingSide
-
getConnectingSide
private RedstoneSide getConnectingSide(BlockGetter pLevel, BlockPos pPos, Direction pDirection, boolean pNonNormalCubeAbove) -
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
canSurviveOn
-
updatePowerStrength
-
calculateTargetStrength
-
getWireSignal
-
checkCornerChangeAt
-
onPlace
public void onPlace(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) - 覆盖:
onPlace
在类中BlockBehaviour
-
onRemove
public void onRemove(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) - 覆盖:
onRemove
在类中BlockBehaviour
-
updateNeighborsOfNeighboringWires
-
neighborChanged
public void neighborChanged(BlockState pState, Level pLevel, BlockPos pPos, Block pBlock, BlockPos pFromPos, boolean pIsMoving) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
getDirectSignal
public int getDirectSignal(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
getSignal
public int getSignal(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) - 覆盖:
getSignal
在类中BlockBehaviour
-
shouldConnectTo
-
shouldConnectTo
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
getColorForPower
public static int getColorForPower(int pPower) -
spawnParticlesAlongLine
-
animateTick
- 覆盖:
animateTick
在类中Block
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
use
public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) - 覆盖:
use
在类中BlockBehaviour
-
updatesOnShapeChange
private void updatesOnShapeChange(Level pLevel, BlockPos pPos, BlockState pOldState, BlockState pNewState)
-