类 DiodeBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
net.minecraft.world.level.block.DiodeBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IBlockExtension
- 直接已知子类:
ComparatorBlock
,RepeaterBlock
-
嵌套类概要
从类继承的嵌套类/接口 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
-
字段概要
字段从类继承的字段 net.minecraft.world.level.block.HorizontalDirectionalBlock
FACING
从类继承的字段 net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, CODEC, 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_394602_, ServerLevel p_394501_, BlockPos p_394572_, boolean p_393902_) protected boolean
canSurvive
(BlockState p_52538_, LevelReader p_52539_, BlockPos p_52540_) protected boolean
canSurviveOn
(LevelReader p_301314_, BlockPos p_301010_, BlockState p_301320_) protected void
checkTickOnNeighbor
(Level p_52577_, BlockPos p_52578_, BlockState p_52579_) protected abstract com.mojang.serialization.MapCodec
<? extends DiodeBlock> codec()
protected int
getAlternateSignal
(SignalGetter p_277358_, BlockPos p_277763_, BlockState p_277604_) protected abstract int
getDelay
(BlockState p_52584_) protected int
getDirectSignal
(BlockState p_52561_, BlockGetter p_52562_, BlockPos p_52563_, Direction p_52564_) protected int
getInputSignal
(Level p_52544_, BlockPos p_52545_, BlockState p_52546_) protected int
getOutputSignal
(BlockGetter p_52541_, BlockPos p_52542_, BlockState p_52543_) protected VoxelShape
getShape
(BlockState p_52556_, BlockGetter p_52557_, BlockPos p_52558_, CollisionContext p_52559_) protected int
getSignal
(BlockState p_52520_, BlockGetter p_52521_, BlockPos p_52522_, Direction p_52523_) getStateForPlacement
(BlockPlaceContext p_52501_) static boolean
isDiode
(BlockState p_52587_) boolean
isLocked
(LevelReader p_52511_, BlockPos p_52512_, BlockState p_52513_) protected boolean
isSignalSource
(BlockState p_52572_) protected void
neighborChanged
(BlockState p_52525_, Level p_52526_, BlockPos p_52527_, Block p_52528_, Orientation p_363074_, boolean p_52530_) protected void
onPlace
(BlockState p_52566_, Level p_52567_, BlockPos p_52568_, BlockState p_52569_, boolean p_52570_) void
setPlacedBy
(Level p_52506_, BlockPos p_52507_, BlockState p_52508_, LivingEntity p_52509_, ItemStack p_52510_) boolean
shouldPrioritize
(BlockGetter p_52574_, BlockPos p_52575_, BlockState p_52576_) protected boolean
shouldTurnOn
(Level p_52502_, BlockPos p_52503_, BlockState p_52504_) protected boolean
protected void
tick
(BlockState p_221065_, ServerLevel p_221066_, BlockPos p_221067_, RandomSource p_221068_) protected void
updateNeighborsInFront
(Level p_52581_, BlockPos p_52582_, BlockState p_52583_) 从类继承的方法 net.minecraft.world.level.block.HorizontalDirectionalBlock
mirror, rotate
从类继承的方法 net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, createBlockStateDefinition, 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, 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, triggerEvent, updateIndirectNeighbourShapes, updateShape, 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
-
字段详细资料
-
POWERED
-
SHAPE
-
-
构造器详细资料
-
DiodeBlock
-
-
方法详细资料
-
codec
- 指定者:
codec
在类中HorizontalDirectionalBlock
-
getShape
protected VoxelShape getShape(BlockState p_52556_, BlockGetter p_52557_, BlockPos p_52558_, CollisionContext p_52559_) - 覆盖:
getShape
在类中BlockBehaviour
-
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
canSurviveOn
-
tick
protected void tick(BlockState p_221065_, ServerLevel p_221066_, BlockPos p_221067_, RandomSource p_221068_) - 覆盖:
tick
在类中BlockBehaviour
-
getDirectSignal
protected int getDirectSignal(BlockState p_52561_, BlockGetter p_52562_, BlockPos p_52563_, Direction p_52564_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
getSignal
protected int getSignal(BlockState p_52520_, BlockGetter p_52521_, BlockPos p_52522_, Direction p_52523_) - 覆盖:
getSignal
在类中BlockBehaviour
-
neighborChanged
protected void neighborChanged(BlockState p_52525_, Level p_52526_, BlockPos p_52527_, Block p_52528_, @Nullable Orientation p_363074_, boolean p_52530_) - 覆盖:
neighborChanged
在类中BlockBehaviour
-
checkTickOnNeighbor
-
isLocked
-
shouldTurnOn
-
getInputSignal
-
getAlternateSignal
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
setPlacedBy
public void setPlacedBy(Level p_52506_, BlockPos p_52507_, BlockState p_52508_, LivingEntity p_52509_, ItemStack p_52510_) - 覆盖:
setPlacedBy
在类中Block
-
onPlace
protected void onPlace(BlockState p_52566_, Level p_52567_, BlockPos p_52568_, BlockState p_52569_, boolean p_52570_) - 覆盖:
onPlace
在类中BlockBehaviour
-
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(BlockState p_394602_, ServerLevel p_394501_, BlockPos p_394572_, boolean p_393902_) -
updateNeighborsInFront
-
sideInputDiodesOnly
protected boolean sideInputDiodesOnly() -
getOutputSignal
-
isDiode
-
shouldPrioritize
-
getDelay
-