public class FallingBlock extends Block
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
FallingBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canFallThrough(BlockState state) |
protected void |
configureFallingBlockEntity(FallingBlockEntity entity) |
int |
getColor(BlockState state,
BlockView blockView,
BlockPos blockPos) |
BlockState |
getStateForNeighborUpdate(BlockState state,
Direction direction,
BlockState newState,
IWorld world,
BlockPos pos,
BlockPos posFrom) |
protected int |
method_26154() |
void |
onBlockAdded(BlockState state,
World world,
BlockPos pos,
BlockState oldState,
boolean notify) |
void |
onDestroyedOnLanding(World world,
BlockPos pos,
FallingBlockEntity fallingBlockEntity) |
void |
onLanding(World world,
BlockPos pos,
BlockState fallingBlockState,
BlockState currentStateInPos,
FallingBlockEntity fallingBlockEntity) |
void |
randomDisplayTick(BlockState state,
World world,
BlockPos pos,
Random random) |
void |
scheduledTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) |
addStacksForDisplay, afterBreak, appendProperties, asBlock, asItem, buildTooltip, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAction, onBlockBreakStart, onBlockRemoved, onEntityCollision, onProjectileHit, onStacksDropped, onUse, prepare, randomTick, rotate
public FallingBlock(AbstractBlock.Settings settings)
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
onBlockAdded
in class AbstractBlock
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, IWorld world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate
in class AbstractBlock
public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
scheduledTick
in class AbstractBlock
protected void configureFallingBlockEntity(FallingBlockEntity entity)
protected int method_26154()
public static boolean canFallThrough(BlockState state)
public void onLanding(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity)
public void onDestroyedOnLanding(World world, BlockPos pos, FallingBlockEntity fallingBlockEntity)
@Environment(value=CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
randomDisplayTick
in class Block
@Environment(value=CLIENT) public int getColor(BlockState state, BlockView blockView, BlockPos blockPos)