public class MovingPistonBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
修飾子とタイプ | フィールドと説明 |
---|---|
static DirectionProperty |
FACING |
static EnumProperty<PistonType> |
TYPE |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
コンストラクタと説明 |
---|
MovingPistonBlock(Block.Properties properties) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
boolean |
causesSuffocation(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
TileEntity |
createNewTileEntity(IBlockReader worldIn) |
static TileEntity |
createTilePiston(BlockState p_196343_0_,
Direction p_196343_1_,
boolean p_196343_2_,
boolean p_196343_3_) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
VoxelShape |
getCollisionShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
java.util.List<ItemStack> |
getDrops(BlockState state,
LootContext.Builder builder) |
ItemStack |
getItem(IBlockReader worldIn,
BlockPos pos,
BlockState state) |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
boolean |
isNormalCube(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
BlockState |
mirror(BlockState state,
Mirror mirrorIn)
非推奨です。
call via
IBlockState#withMirror(Mirror) whenever possible. Implementing/overriding is fine. |
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onPlayerDestroy(IWorld worldIn,
BlockPos pos,
BlockState state)
Called after a player destroys this Block - the posiiton pos may no longer hold the state indicated.
|
void |
onReplaced(BlockState state,
World worldIn,
BlockPos pos,
BlockState newState,
boolean isMoving) |
BlockState |
rotate(BlockState state,
Rotation rot)
非推奨です。
call via
IBlockState#withRotation(Rotation) whenever possible. Implementing/overriding is
fine. |
eventReceived, getContainer, getRenderType
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getComparatorInputOverride, getDefaultState, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, 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, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final DirectionProperty FACING
public static final EnumProperty<PistonType> TYPE
public MovingPistonBlock(Block.Properties properties)
@Nullable public TileEntity createNewTileEntity(IBlockReader worldIn)
public static TileEntity createTilePiston(BlockState p_196343_0_, Direction p_196343_1_, boolean p_196343_2_, boolean p_196343_3_)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
クラス内 Block
public void onPlayerDestroy(IWorld worldIn, BlockPos pos, BlockState state)
onPlayerDestroy
クラス内 Block
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos)
isNormalCube
クラス内 Block
public boolean causesSuffocation(BlockState state, IBlockReader worldIn, BlockPos pos)
causesSuffocation
クラス内 Block
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
クラス内 Block
public java.util.List<ItemStack> getDrops(BlockState state, LootContext.Builder builder)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public VoxelShape getCollisionShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
getCollisionShape
クラス内 Block
public ItemStack getItem(IBlockReader worldIn, BlockPos pos, BlockState state)
public BlockState rotate(BlockState state, Rotation rot)
IBlockState#withRotation(Rotation)
whenever possible. Implementing/overriding is
fine.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
クラス内 Block
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
クラス内 Block