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