类 TripwireBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.TripwireBlock
-
- 所有已实现的接口:
ItemConvertible
public class TripwireBlock extends Block
- Mappings:
Namespace Name official cgfintermediary net/minecraft/class_2538named net/minecraft/block/TripwireBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 static BooleanPropertyATTACHEDprotected static VoxelShapeATTACHED_SHAPEprotected static VoxelShapeDETACHED_SHAPEstatic BooleanPropertyDISARMEDstatic BooleanPropertyEASTprivate static Map<Direction,BooleanProperty>FACING_PROPERTIESprivate static intfield_31267private TripwireHookBlockhookBlockstatic BooleanPropertyNORTHstatic BooleanPropertyPOWEREDstatic BooleanPropertySOUTHstatic BooleanPropertyWEST-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 TripwireBlock(TripwireHookBlock hookBlock, AbstractBlock.Settings settings)
-
方法概要
-
从类继承的方法 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, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick
-
-
-
-
字段详细资料
-
POWERED
public static final BooleanProperty POWERED
- Mappings:
Namespace Name Mixin selector official aLcgf;a:Lcki;intermediary field_11680Lnet/minecraft/class_2538;field_11680:Lnet/minecraft/class_2746;named POWEREDLnet/minecraft/block/TripwireBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
ATTACHED
public static final BooleanProperty ATTACHED
- Mappings:
Namespace Name Mixin selector official bLcgf;b:Lcki;intermediary field_11683Lnet/minecraft/class_2538;field_11683:Lnet/minecraft/class_2746;named ATTACHEDLnet/minecraft/block/TripwireBlock;ATTACHED:Lnet/minecraft/state/property/BooleanProperty;
-
DISARMED
public static final BooleanProperty DISARMED
- Mappings:
Namespace Name Mixin selector official cLcgf;c:Lcki;intermediary field_11679Lnet/minecraft/class_2538;field_11679:Lnet/minecraft/class_2746;named DISARMEDLnet/minecraft/block/TripwireBlock;DISARMED:Lnet/minecraft/state/property/BooleanProperty;
-
NORTH
public static final BooleanProperty NORTH
- Mappings:
Namespace Name Mixin selector official dLcgf;d:Lcki;intermediary field_11675Lnet/minecraft/class_2538;field_11675:Lnet/minecraft/class_2746;named NORTHLnet/minecraft/block/TripwireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
public static final BooleanProperty EAST
- Mappings:
Namespace Name Mixin selector official eLcgf;e:Lcki;intermediary field_11673Lnet/minecraft/class_2538;field_11673:Lnet/minecraft/class_2746;named EASTLnet/minecraft/block/TripwireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
public static final BooleanProperty SOUTH
- Mappings:
Namespace Name Mixin selector official fLcgf;f:Lcki;intermediary field_11678Lnet/minecraft/class_2538;field_11678:Lnet/minecraft/class_2746;named SOUTHLnet/minecraft/block/TripwireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
public static final BooleanProperty WEST
- Mappings:
Namespace Name Mixin selector official gLcgf;g:Lcki;intermediary field_11674Lnet/minecraft/class_2538;field_11674:Lnet/minecraft/class_2746;named WESTLnet/minecraft/block/TripwireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
FACING_PROPERTIES
private static final Map<Direction,BooleanProperty> FACING_PROPERTIES
- Mappings:
Namespace Name Mixin selector official jLcgf;j:Ljava/util/Map;intermediary field_11676Lnet/minecraft/class_2538;field_11676:Ljava/util/Map;named FACING_PROPERTIESLnet/minecraft/block/TripwireBlock;FACING_PROPERTIES:Ljava/util/Map;
-
ATTACHED_SHAPE
protected static final VoxelShape ATTACHED_SHAPE
- Mappings:
Namespace Name Mixin selector official hLcgf;h:Ldmt;intermediary field_11682Lnet/minecraft/class_2538;field_11682:Lnet/minecraft/class_265;named ATTACHED_SHAPELnet/minecraft/block/TripwireBlock;ATTACHED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
DETACHED_SHAPE
protected static final VoxelShape DETACHED_SHAPE
- Mappings:
Namespace Name Mixin selector official iLcgf;i:Ldmt;intermediary field_11681Lnet/minecraft/class_2538;field_11681:Lnet/minecraft/class_265;named DETACHED_SHAPELnet/minecraft/block/TripwireBlock;DETACHED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
field_31267
private static final int field_31267
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official kLcgf;k:Iintermediary field_31267Lnet/minecraft/class_2538;field_31267:Inamed field_31267Lnet/minecraft/block/TripwireBlock;field_31267:I
-
hookBlock
private final TripwireHookBlock hookBlock
- Mappings:
Namespace Name Mixin selector official lLcgf;l:Lcgg;intermediary field_11677Lnet/minecraft/class_2538;field_11677:Lnet/minecraft/class_2537;named hookBlockLnet/minecraft/block/TripwireBlock;hookBlock:Lnet/minecraft/block/TripwireHookBlock;
-
-
构造器详细资料
-
TripwireBlock
public TripwireBlock(TripwireHookBlock hookBlock, AbstractBlock.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lcgf;<init>(Lcgg;Lcjq$c;)Vintermediary <init>Lnet/minecraft/class_2538;<init>(Lnet/minecraft/class_2537;Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/TripwireBlock;<init>(Lnet/minecraft/block/TripwireHookBlock;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;
-
getPlacementState
public 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;
-
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;
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
- 覆盖:
onBlockAdded在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)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
-
onBreak
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
- 覆盖:
onBreak在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lcjr;Lbjf;)Vintermediary method_9576Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
update
private void update(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official aLcgf;a(Lbvr;Lgb;Lcjr;)Vintermediary method_10779Lnet/minecraft/class_2538;method_10779(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed updateLnet/minecraft/block/TripwireBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onEntityCollision
public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
- 覆盖:
onEntityCollision在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lasl;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)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
-
updatePowered
private void updatePowered(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcgf;a(Lbvr;Lgb;)Vintermediary method_10780Lnet/minecraft/class_2538;method_10780(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updatePoweredLnet/minecraft/block/TripwireBlock;updatePowered(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
shouldConnectTo
public boolean shouldConnectTo(BlockState state, Direction facing)
- Mappings:
Namespace Name Mixin selector official aLcgf;a(Lcjr;Lgg;)Zintermediary method_10778Lnet/minecraft/class_2538;method_10778(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed shouldConnectToLnet/minecraft/block/TripwireBlock;shouldConnectTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)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
-
-