类 TripwireHookBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.TripwireHookBlock
-
- 所有已实现的接口:
ItemConvertible
public class TripwireHookBlock extends Block
- Mappings:
Namespace Name official cggintermediary net/minecraft/class_2537named net/minecraft/block/TripwireHookBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 static BooleanPropertyATTACHEDprotected static VoxelShapeEAST_SHAPEstatic DirectionPropertyFACINGprotected static intfield_31268protected static intfield_31269protected static intfield_31270private static intfield_31271protected static VoxelShapeNORTH_SHAPEstatic BooleanPropertyPOWEREDprotected static VoxelShapeSOUTH_SHAPEprotected static VoxelShapeWEST_SHAPE-
从类继承的字段 net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
-
从类继承的字段 net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
-
构造器概要
构造器 构造器 说明 TripwireHookBlock(AbstractBlock.Settings settings)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)booleanemitsRedstonePower(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)@Nullable BlockStategetPlacementState(ItemPlacementContext ctx)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.intgetStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)intgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)BlockStatemirror(BlockState state, BlockMirror mirror)voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidonStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate.private voidplaySound(World world, BlockPos pos, boolean attached, boolean on, boolean detached, boolean off)BlockStaterotate(BlockState state, BlockRotation rotation)Applies a block rotation to a block state.voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)voidupdate(World world, BlockPos pos, BlockState state, boolean beingRemoved, boolean bool, int int2, @Nullable BlockState blockState)private voidupdateNeighborsOnAxis(World world, BlockPos pos, Direction direction)-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick
-
-
-
-
字段详细资料
-
FACING
public static final DirectionProperty FACING
- Mappings:
Namespace Name Mixin selector official aLcgg;a:Lckl;intermediary field_11666Lnet/minecraft/class_2537;field_11666:Lnet/minecraft/class_2753;named FACINGLnet/minecraft/block/TripwireHookBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
POWERED
public static final BooleanProperty POWERED
- Mappings:
Namespace Name Mixin selector official bLcgg;b:Lcki;intermediary field_11671Lnet/minecraft/class_2537;field_11671:Lnet/minecraft/class_2746;named POWEREDLnet/minecraft/block/TripwireHookBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
ATTACHED
public static final BooleanProperty ATTACHED
- Mappings:
Namespace Name Mixin selector official cLcgg;c:Lcki;intermediary field_11669Lnet/minecraft/class_2537;field_11669:Lnet/minecraft/class_2746;named ATTACHEDLnet/minecraft/block/TripwireHookBlock;ATTACHED:Lnet/minecraft/state/property/BooleanProperty;
-
field_31268
protected static final int field_31268
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLcgg;d:Iintermediary field_31268Lnet/minecraft/class_2537;field_31268:Inamed field_31268Lnet/minecraft/block/TripwireHookBlock;field_31268:I
-
field_31269
protected static final int field_31269
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLcgg;e:Iintermediary field_31269Lnet/minecraft/class_2537;field_31269:Inamed field_31269Lnet/minecraft/block/TripwireHookBlock;field_31269:I
-
field_31271
private static final int field_31271
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official kLcgg;k:Iintermediary field_31271Lnet/minecraft/class_2537;field_31271:Inamed field_31271Lnet/minecraft/block/TripwireHookBlock;field_31271:I
-
field_31270
protected static final int field_31270
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLcgg;f:Iintermediary field_31270Lnet/minecraft/class_2537;field_31270:Inamed field_31270Lnet/minecraft/block/TripwireHookBlock;field_31270:I
-
SOUTH_SHAPE
protected static final VoxelShape SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector official gLcgg;g:Ldmt;intermediary field_11665Lnet/minecraft/class_2537;field_11665:Lnet/minecraft/class_265;named SOUTH_SHAPELnet/minecraft/block/TripwireHookBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
NORTH_SHAPE
protected static final VoxelShape NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector official hLcgg;h:Ldmt;intermediary field_11668Lnet/minecraft/class_2537;field_11668:Lnet/minecraft/class_265;named NORTH_SHAPELnet/minecraft/block/TripwireHookBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EAST_SHAPE
protected static final VoxelShape EAST_SHAPE
- Mappings:
Namespace Name Mixin selector official iLcgg;i:Ldmt;intermediary field_11670Lnet/minecraft/class_2537;field_11670:Lnet/minecraft/class_265;named EAST_SHAPELnet/minecraft/block/TripwireHookBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
WEST_SHAPE
protected static final VoxelShape WEST_SHAPE
- Mappings:
Namespace Name Mixin selector official jLcgg;j:Ldmt;intermediary field_11667Lnet/minecraft/class_2537;field_11667:Lnet/minecraft/class_265;named WEST_SHAPELnet/minecraft/block/TripwireHookBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
-
构造器详细资料
-
TripwireHookBlock
public TripwireHookBlock(AbstractBlock.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lcjq;<init>(Lcjq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
方法详细资料
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
- 覆盖:
getOutlineShape在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
canPlaceAt
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
- 覆盖:
canPlaceAt在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvu;Lgb;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed canPlaceAtLnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
Gets the possibly updated block state of this block when a neighboring block is updated.- 覆盖:
getStateForNeighborUpdate在类中AbstractBlock- 参数:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- 返回:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lgg;Lcjr;Lbvs;Lgb;Lgb;)Lcjr;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getPlacementState
@Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
- 覆盖:
getPlacementState在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbrr;)Lcjr;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
- 覆盖:
onPlaced在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lcjr;Lasy;Lbpr;)Vintermediary method_9567Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Vnamed onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
update
public void update(World world, BlockPos pos, BlockState state, boolean beingRemoved, boolean bool, int int2, @Nullable @Nullable BlockState blockState)
- Mappings:
Namespace Name Mixin selector official aLcgg;a(Lbvr;Lgb;Lcjr;ZZILcjr;)Vintermediary method_10776Lnet/minecraft/class_2537;method_10776(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;ZZILnet/minecraft/class_2680;)Vnamed updateLnet/minecraft/block/TripwireHookBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;ZZILnet/minecraft/block/BlockState;)V
-
scheduledTick
public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
- 覆盖:
scheduledTick在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official a_Lcjq;a_(Lcjr;Labj;Lgb;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
playSound
private void playSound(World world, BlockPos pos, boolean attached, boolean on, boolean detached, boolean off)
- Mappings:
Namespace Name Mixin selector official aLcgg;a(Lbvr;Lgb;ZZZZ)Vintermediary method_10777Lnet/minecraft/class_2537;method_10777(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;ZZZZ)Vnamed playSoundLnet/minecraft/block/TripwireHookBlock;playSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ZZZZ)V
-
updateNeighborsOnAxis
private void updateNeighborsOnAxis(World world, BlockPos pos, Direction direction)
- Mappings:
Namespace Name Mixin selector official aLcgg;a(Lbvr;Lgb;Lgg;)Vintermediary method_10775Lnet/minecraft/class_2537;method_10775(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Vnamed updateNeighborsOnAxisLnet/minecraft/block/TripwireHookBlock;updateNeighborsOnAxis(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- 覆盖:
onStateReplaced在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9536Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onStateReplacedLnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
- 覆盖:
getWeakRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Lgg;)Iintermediary method_9524Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getWeakRedstonePowerLnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
- 覆盖:
getStrongRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbuv;Lgb;Lgg;)Iintermediary method_9603Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getStrongRedstonePowerLnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
emitsRedstonePower
public boolean emitsRedstonePower(BlockState state)
- 覆盖:
emitsRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official e_Lcjq;e_(Lcjr;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
rotate
public BlockState rotate(BlockState state, BlockRotation rotation)
Applies a block rotation to a block state.By default, this returns the provided block state.
- 覆盖:
rotate在类中AbstractBlock- 返回:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lcek;)Lcjr;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
mirror
public BlockState mirror(BlockState state, BlockMirror mirror)
- 覆盖:
mirror在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lccy;)Lcjr;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
- 覆盖:
appendProperties在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lcjs$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
-