类 RedstoneTorchBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseTorchBlock
net.minecraft.world.level.block.RedstoneTorchBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IBlockExtension
- 直接已知子类:
RedstoneWallTorchBlock
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 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
<RedstoneTorchBlock> static final BooleanProperty
static final int
static final int
private static final Map
<BlockGetter, List<RedstoneTorchBlock.Toggle>> static final int
private static final int
从类继承的字段 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_393663_, ServerLevel p_394074_, BlockPos p_393851_, boolean p_393740_) void
animateTick
(BlockState p_221954_, Level p_221955_, BlockPos p_221956_, RandomSource p_221957_) com.mojang.serialization.MapCodec
<? extends RedstoneTorchBlock> codec()
protected void
protected int
getDirectSignal
(BlockState p_55719_, BlockGetter p_55720_, BlockPos p_55721_, Direction p_55722_) protected int
getSignal
(BlockState p_55694_, BlockGetter p_55695_, BlockPos p_55696_, Direction p_55697_) protected boolean
hasNeighborSignal
(Level p_55681_, BlockPos p_55682_, BlockState p_55683_) protected boolean
isSignalSource
(BlockState p_55730_) private static boolean
isToggledTooFrequently
(Level p_55685_, BlockPos p_55686_, boolean p_55687_) protected void
neighborChanged
(BlockState p_55699_, Level p_55700_, BlockPos p_55701_, Block p_55702_, Orientation p_362458_, boolean p_55704_) private void
notifyNeighbors
(Level p_362355_, BlockPos p_361925_, BlockState p_362556_) protected void
onPlace
(BlockState p_55724_, Level p_55725_, BlockPos p_55726_, BlockState p_55727_, boolean p_55728_) protected Orientation
randomOrientation
(Level p_361710_, BlockState p_365031_) protected void
tick
(BlockState p_221949_, ServerLevel p_221950_, BlockPos p_221951_, RandomSource p_221952_) 从类继承的方法 net.minecraft.world.level.block.BaseTorchBlock
canSurvive, getShape, updateShape
从类继承的方法 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, getStateForPlacement, 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, mirror, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem
从类继承的方法 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
-
LIT
-
RECENT_TOGGLES
-
RECENT_TOGGLE_TIMER
public static final int RECENT_TOGGLE_TIMER- 另请参阅:
-
MAX_RECENT_TOGGLES
public static final int MAX_RECENT_TOGGLES- 另请参阅:
-
RESTART_DELAY
public static final int RESTART_DELAY- 另请参阅:
-
TOGGLE_DELAY
private static final int TOGGLE_DELAY- 另请参阅:
-
-
构造器详细资料
-
RedstoneTorchBlock
-
-
方法详细资料
-
codec
- 指定者:
codec
在类中BaseTorchBlock
-
onPlace
protected void onPlace(BlockState p_55724_, Level p_55725_, BlockPos p_55726_, BlockState p_55727_, boolean p_55728_) - 覆盖:
onPlace
在类中BlockBehaviour
-
notifyNeighbors
-
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(BlockState p_393663_, ServerLevel p_394074_, BlockPos p_393851_, boolean p_393740_) -
getSignal
protected int getSignal(BlockState p_55694_, BlockGetter p_55695_, BlockPos p_55696_, Direction p_55697_) - 覆盖:
getSignal
在类中BlockBehaviour
-
hasNeighborSignal
-
tick
protected void tick(BlockState p_221949_, ServerLevel p_221950_, BlockPos p_221951_, RandomSource p_221952_) - 覆盖:
tick
在类中BlockBehaviour
-
neighborChanged
protected void neighborChanged(BlockState p_55699_, Level p_55700_, BlockPos p_55701_, Block p_55702_, @Nullable Orientation p_362458_, boolean p_55704_) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
getDirectSignal
protected int getDirectSignal(BlockState p_55719_, BlockGetter p_55720_, BlockPos p_55721_, Direction p_55722_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
animateTick
public void animateTick(BlockState p_221954_, Level p_221955_, BlockPos p_221956_, RandomSource p_221957_) - 覆盖:
animateTick
在类中Block
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
isToggledTooFrequently
-
randomOrientation
-