public class PistonBlock extends DirectionalBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| 修飾子とタイプ | フィールドと説明 |
|---|---|
static BooleanProperty |
EXTENDED |
protected static VoxelShape |
PISTON_BASE_DOWN_AABB |
protected static VoxelShape |
PISTON_BASE_EAST_AABB |
protected static VoxelShape |
PISTON_BASE_NORTH_AABB |
protected static VoxelShape |
PISTON_BASE_SOUTH_AABB |
protected static VoxelShape |
PISTON_BASE_UP_AABB |
protected static VoxelShape |
PISTON_BASE_WEST_AABB |
FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| コンストラクタと説明 |
|---|
PistonBlock(boolean sticky,
Block.Properties properties) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
static boolean |
canPush(BlockState blockStateIn,
World worldIn,
BlockPos pos,
Direction facing,
boolean destroyBlocks,
Direction p_185646_5_)
Checks if the piston can push the given BlockState.
|
boolean |
causesSuffocation(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
boolean |
eventReceived(BlockState state,
World worldIn,
BlockPos pos,
int id,
int param)
非推奨です。
call via
IBlockState#onBlockEventReceived(World,BlockPos,int,int) whenever possible.
Implementing/overriding is fine. |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
BlockState |
getStateForPlacement(BlockItemUseContext context) |
boolean |
isNormalCube(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
boolean |
isTransparent(BlockState state) |
BlockState |
mirror(BlockState state,
Mirror mirrorIn)
非推奨です。
call via
IBlockState#withMirror(Mirror) whenever possible. Implementing/overriding is fine. |
void |
neighborChanged(BlockState state,
World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos,
boolean isMoving) |
void |
onBlockAdded(BlockState state,
World worldIn,
BlockPos pos,
BlockState oldState,
boolean isMoving) |
void |
onBlockPlacedBy(World worldIn,
BlockPos pos,
BlockState state,
LivingEntity placer,
ItemStack stack)
Called by ItemBlocks after a block is set in the world, to allow post-place logic
|
BlockState |
rotate(BlockState state,
IWorld world,
BlockPos pos,
Rotation direction) |
BlockState |
rotate(BlockState state,
Rotation rot)
非推奨です。
call via
IBlockState#withRotation(Rotation) whenever possible. Implementing/overriding is
fine. |
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacementgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final BooleanProperty EXTENDED
protected static final VoxelShape PISTON_BASE_EAST_AABB
protected static final VoxelShape PISTON_BASE_WEST_AABB
protected static final VoxelShape PISTON_BASE_SOUTH_AABB
protected static final VoxelShape PISTON_BASE_NORTH_AABB
protected static final VoxelShape PISTON_BASE_UP_AABB
protected static final VoxelShape PISTON_BASE_DOWN_AABB
public PistonBlock(boolean sticky,
Block.Properties properties)
public boolean causesSuffocation(BlockState state, IBlockReader worldIn, BlockPos pos)
causesSuffocation クラス内 Blockpublic VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos)
isNormalCube クラス内 Blockpublic void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack)
onBlockPlacedBy クラス内 Blockpublic void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged クラス内 Blockpublic void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded クラス内 Blockpublic BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement クラス内 Blockpublic boolean eventReceived(BlockState state, World worldIn, BlockPos pos, int id, int param)
IBlockState#onBlockEventReceived(World,BlockPos,int,int) whenever possible.
Implementing/overriding is fine.eventReceived クラス内 Blockpublic static boolean canPush(BlockState blockStateIn, World worldIn, BlockPos pos, Direction facing, boolean destroyBlocks, Direction p_185646_5_)
public BlockState rotate(BlockState state, Rotation rot)
IBlockState#withRotation(Rotation) whenever possible. Implementing/overriding is
fine.public BlockState rotate(BlockState state, IWorld world, BlockPos pos, Rotation direction)
public BlockState mirror(BlockState state, Mirror mirrorIn)
IBlockState#withMirror(Mirror) whenever possible. Implementing/overriding is fine.protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer クラス内 Blockpublic boolean isTransparent(BlockState state)
isTransparent クラス内 Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement クラス内 Block