类 PistonBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.FacingBlock
-
- net.minecraft.block.PistonBlock
-
- 所有已实现的接口:
ItemConvertible
public class PistonBlock extends FacingBlock
- Mappings:
Namespace Name official cjkintermediary net/minecraft/class_2665named net/minecraft/block/PistonBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 static BooleanPropertyEXTENDEDprotected static VoxelShapeEXTENDED_DOWN_SHAPEprotected static VoxelShapeEXTENDED_EAST_SHAPEprotected static VoxelShapeEXTENDED_NORTH_SHAPEprotected static VoxelShapeEXTENDED_SOUTH_SHAPEprotected static VoxelShapeEXTENDED_UP_SHAPEprotected static VoxelShapeEXTENDED_WEST_SHAPEstatic intfield_31373static intfield_31374static intfield_31375static floatfield_31376private booleansticky-
从类继承的字段 net.minecraft.block.FacingBlock
FACING
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 PistonBlock(boolean sticky, AbstractBlock.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)booleanhasSidedTransparency(BlockState state)static booleanisMovable(BlockState state, World world, BlockPos pos, Direction direction, boolean canBreak, Direction pistonDir)BlockStatemirror(BlockState state, BlockMirror mirror)private booleanmove(World world, BlockPos pos, Direction dir, boolean retract)voidneighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)booleanonSyncedBlockEvent(BlockState state, World world, BlockPos pos, int type, int data)BlockStaterotate(BlockState state, BlockRotation rotation)Applies a block rotation to a block state.private booleanshouldExtend(World world, BlockPos pos, Direction pistonFace)private voidtryMove(World world, BlockPos pos, BlockState state)-
从类继承的方法 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, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, isSideInvisible, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onUse, prepare, randomTick, scheduledTick
-
-
-
-
字段详细资料
-
EXTENDED
public static final BooleanProperty EXTENDED
- Mappings:
Namespace Name Mixin selector official bLcjk;b:Lcki;intermediary field_12191Lnet/minecraft/class_2665;field_12191:Lnet/minecraft/class_2746;named EXTENDEDLnet/minecraft/block/PistonBlock;EXTENDED:Lnet/minecraft/state/property/BooleanProperty;
-
field_31373
public static final int field_31373
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLcjk;c:Iintermediary field_31373Lnet/minecraft/class_2665;field_31373:Inamed field_31373Lnet/minecraft/block/PistonBlock;field_31373:I
-
field_31374
public static final int field_31374
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLcjk;d:Iintermediary field_31374Lnet/minecraft/class_2665;field_31374:Inamed field_31374Lnet/minecraft/block/PistonBlock;field_31374:I
-
field_31375
public static final int field_31375
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLcjk;e:Iintermediary field_31375Lnet/minecraft/class_2665;field_31375:Inamed field_31375Lnet/minecraft/block/PistonBlock;field_31375:I
-
field_31376
public static final float field_31376
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLcjk;f:Fintermediary field_31376Lnet/minecraft/class_2665;field_31376:Fnamed field_31376Lnet/minecraft/block/PistonBlock;field_31376:F
-
EXTENDED_EAST_SHAPE
protected static final VoxelShape EXTENDED_EAST_SHAPE
- Mappings:
Namespace Name Mixin selector official gLcjk;g:Ldmt;intermediary field_12188Lnet/minecraft/class_2665;field_12188:Lnet/minecraft/class_265;named EXTENDED_EAST_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EXTENDED_WEST_SHAPE
protected static final VoxelShape EXTENDED_WEST_SHAPE
- Mappings:
Namespace Name Mixin selector official hLcjk;h:Ldmt;intermediary field_12184Lnet/minecraft/class_2665;field_12184:Lnet/minecraft/class_265;named EXTENDED_WEST_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EXTENDED_SOUTH_SHAPE
protected static final VoxelShape EXTENDED_SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector official iLcjk;i:Ldmt;intermediary field_12186Lnet/minecraft/class_2665;field_12186:Lnet/minecraft/class_265;named EXTENDED_SOUTH_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EXTENDED_NORTH_SHAPE
protected static final VoxelShape EXTENDED_NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector official jLcjk;j:Ldmt;intermediary field_12189Lnet/minecraft/class_2665;field_12189:Lnet/minecraft/class_265;named EXTENDED_NORTH_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EXTENDED_UP_SHAPE
protected static final VoxelShape EXTENDED_UP_SHAPE
- Mappings:
Namespace Name Mixin selector official kLcjk;k:Ldmt;intermediary field_12185Lnet/minecraft/class_2665;field_12185:Lnet/minecraft/class_265;named EXTENDED_UP_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EXTENDED_DOWN_SHAPE
protected static final VoxelShape EXTENDED_DOWN_SHAPE
- Mappings:
Namespace Name Mixin selector official lLcjk;l:Ldmt;intermediary field_12190Lnet/minecraft/class_2665;field_12190:Lnet/minecraft/class_265;named EXTENDED_DOWN_SHAPELnet/minecraft/block/PistonBlock;EXTENDED_DOWN_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
sticky
private final boolean sticky
- Mappings:
Namespace Name Mixin selector official mLcjk;m:Zintermediary field_12187Lnet/minecraft/class_2665;field_12187:Znamed stickyLnet/minecraft/block/PistonBlock;sticky:Z
-
-
构造器详细资料
-
PistonBlock
public PistonBlock(boolean sticky, AbstractBlock.Settings settings)- Mappings:
Namespace Name Mixin selector official <init>Lcjk;<init>(ZLcjq$c;)Vintermediary <init>Lnet/minecraft/class_2665;<init>(ZLnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/PistonBlock;<init>(ZLnet/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;
-
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
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)
- 覆盖:
neighborUpdate在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lbyq;Lgb;Z)Vintermediary method_9612Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)Vnamed neighborUpdateLnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
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
-
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;
-
tryMove
private void tryMove(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official aLcjk;a(Lbvr;Lgb;Lcjr;)Vintermediary method_11483Lnet/minecraft/class_2665;method_11483(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed tryMoveLnet/minecraft/block/PistonBlock;tryMove(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
shouldExtend
private boolean shouldExtend(World world, BlockPos pos, Direction pistonFace)
- Mappings:
Namespace Name Mixin selector official aLcjk;a(Lbvr;Lgb;Lgg;)Zintermediary method_11482Lnet/minecraft/class_2665;method_11482(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed shouldExtendLnet/minecraft/block/PistonBlock;shouldExtend(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(BlockState state, World world, BlockPos pos, int type, int data)
- 覆盖:
onSyncedBlockEvent在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;II)Zintermediary method_9592Lnet/minecraft/class_4970;method_9592(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;II)Znamed onSyncedBlockEventLnet/minecraft/block/AbstractBlock;onSyncedBlockEvent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;II)Z
-
isMovable
public static boolean isMovable(BlockState state, World world, BlockPos pos, Direction direction, boolean canBreak, Direction pistonDir)
- Mappings:
Namespace Name Mixin selector official aLcjk;a(Lcjr;Lbvr;Lgb;Lgg;ZLgg;)Zintermediary method_11484Lnet/minecraft/class_2665;method_11484(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;ZLnet/minecraft/class_2350;)Znamed isMovableLnet/minecraft/block/PistonBlock;isMovable(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;ZLnet/minecraft/util/math/Direction;)Z
-
move
private boolean move(World world, BlockPos pos, Direction dir, boolean retract)
- Mappings:
Namespace Name Mixin selector official aLcjk;a(Lbvr;Lgb;Lgg;Z)Zintermediary method_11481Lnet/minecraft/class_2665;method_11481(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Z)Znamed moveLnet/minecraft/block/PistonBlock;move(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)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
-
hasSidedTransparency
public boolean hasSidedTransparency(BlockState state)
- 覆盖:
hasSidedTransparency在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official f_Lcjq;f_(Lcjr;)Zintermediary method_9526Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Znamed hasSidedTransparencyLnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
-
canPathfindThrough
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
- 覆盖:
canPathfindThrough在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Ldgb;)Zintermediary method_9516Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Znamed canPathfindThroughLnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
-
-