类 TripWireHookBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.TripWireHookBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeBlock
-
嵌套类概要
从类继承的嵌套类/接口 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
-
字段概要
字段修饰符和类型字段说明protected static final int
static final BooleanProperty
static final com.mojang.serialization.MapCodec
<TripWireHookBlock> protected static final VoxelShape
static final EnumProperty
<Direction> protected static final VoxelShape
static final BooleanProperty
private static final int
protected static final VoxelShape
protected static final VoxelShape
protected static final int
protected 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_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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
calculateState
(Level p_57686_, BlockPos p_57687_, BlockState p_57688_, boolean p_57689_, boolean p_57690_, int p_57691_, BlockState p_57692_) protected boolean
canSurvive
(BlockState p_57721_, LevelReader p_57722_, BlockPos p_57723_) com.mojang.serialization.MapCodec
<TripWireHookBlock> codec()
protected void
private static void
emitState
(Level p_222603_, BlockPos p_222604_, boolean p_222605_, boolean p_222606_, boolean p_222607_, boolean p_222608_) protected int
getDirectSignal
(BlockState p_57745_, BlockGetter p_57746_, BlockPos p_57747_, Direction p_57748_) protected VoxelShape
getShape
(BlockState p_57740_, BlockGetter p_57741_, BlockPos p_57742_, CollisionContext p_57743_) protected int
getSignal
(BlockState p_57710_, BlockGetter p_57711_, BlockPos p_57712_, Direction p_57713_) getStateForPlacement
(BlockPlaceContext p_57678_) protected boolean
isSignalSource
(BlockState p_57750_) protected BlockState
mirror
(BlockState p_57725_, Mirror p_57726_) private static void
notifyNeighbors
(Block p_312237_, Level p_57694_, BlockPos p_57695_, Direction p_57696_) protected void
onRemove
(BlockState p_57715_, Level p_57716_, BlockPos p_57717_, BlockState p_57718_, boolean p_57719_) protected BlockState
rotate
(BlockState p_57728_, Rotation p_57729_) void
setPlacedBy
(Level p_57680_, BlockPos p_57681_, BlockState p_57682_, LivingEntity p_57683_, ItemStack p_57684_) protected void
tick
(BlockState p_222610_, ServerLevel p_222611_, BlockPos p_222612_, RandomSource p_222613_) protected BlockState
updateShape
(BlockState p_57731_, LevelReader p_368766_, ScheduledTickAccess p_365650_, BlockPos p_57735_, Direction p_57732_, BlockPos p_57736_, BlockState p_57733_, RandomSource p_361546_) 从类继承的方法 net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, 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, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, 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.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, 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
-
字段详细资料
-
CODEC
-
FACING
-
POWERED
-
ATTACHED
-
WIRE_DIST_MIN
protected static final int WIRE_DIST_MIN- 另请参阅:
-
WIRE_DIST_MAX
protected static final int WIRE_DIST_MAX- 另请参阅:
-
RECHECK_PERIOD
private static final int RECHECK_PERIOD- 另请参阅:
-
AABB_OFFSET
protected static final int AABB_OFFSET- 另请参阅:
-
NORTH_AABB
-
SOUTH_AABB
-
WEST_AABB
-
EAST_AABB
-
-
构造器详细资料
-
TripWireHookBlock
-
-
方法详细资料
-
codec
-
getShape
protected VoxelShape getShape(BlockState p_57740_, BlockGetter p_57741_, BlockPos p_57742_, CollisionContext p_57743_) - 覆盖:
getShape
在类中BlockBehaviour
-
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
updateShape
protected BlockState updateShape(BlockState p_57731_, LevelReader p_368766_, ScheduledTickAccess p_365650_, BlockPos p_57735_, Direction p_57732_, BlockPos p_57736_, BlockState p_57733_, RandomSource p_361546_) - 覆盖:
updateShape
在类中BlockBehaviour
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
setPlacedBy
public void setPlacedBy(Level p_57680_, BlockPos p_57681_, BlockState p_57682_, LivingEntity p_57683_, ItemStack p_57684_) - 覆盖:
setPlacedBy
在类中Block
-
calculateState
public static void calculateState(Level p_57686_, BlockPos p_57687_, BlockState p_57688_, boolean p_57689_, boolean p_57690_, int p_57691_, @Nullable BlockState p_57692_) -
tick
protected void tick(BlockState p_222610_, ServerLevel p_222611_, BlockPos p_222612_, RandomSource p_222613_) - 覆盖:
tick
在类中BlockBehaviour
-
emitState
-
notifyNeighbors
-
onRemove
protected void onRemove(BlockState p_57715_, Level p_57716_, BlockPos p_57717_, BlockState p_57718_, boolean p_57719_) - 覆盖:
onRemove
在类中BlockBehaviour
-
getSignal
protected int getSignal(BlockState p_57710_, BlockGetter p_57711_, BlockPos p_57712_, Direction p_57713_) - 覆盖:
getSignal
在类中BlockBehaviour
-
getDirectSignal
protected int getDirectSignal(BlockState p_57745_, BlockGetter p_57746_, BlockPos p_57747_, Direction p_57748_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-