public class KelpBlock extends AbstractPlantStemBlock implements FluidFillable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
SHAPE |
AGEgrowthDirection, outlineShape, tickWaterLOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
KelpBlock(AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canAttachTo(Block block) |
boolean |
canFillWithFluid(BlockView world,
BlockPos pos,
BlockState state,
Fluid fluid) |
protected boolean |
chooseStemState(BlockState state) |
FluidState |
getFluidState(BlockState state) |
BlockState |
getPlacementState(ItemPlacementContext ctx) |
protected Block |
getPlant() |
protected int |
method_26376(Random random) |
boolean |
tryFillWithFluid(WorldAccess world,
BlockPos pos,
BlockState state,
FluidState fluidState) |
appendProperties, canGrow, getRandomGrowthState, getStateForNeighborUpdate, getStem, grow, hasRandomTicks, isFertilizable, randomTickcanPlaceAt, getOutlineShape, scheduledTickaddStacksForDisplay, afterBreak, 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, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotateprotected static final VoxelShape SHAPE
protected KelpBlock(AbstractBlock.Settings settings)
protected boolean chooseStemState(BlockState state)
chooseStemState in class AbstractPlantStemBlockprotected Block getPlant()
getPlant in class AbstractPlantPartBlockprotected boolean canAttachTo(Block block)
canAttachTo in class AbstractPlantPartBlockpublic boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
canFillWithFluid in interface FluidFillablepublic boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
tryFillWithFluid in interface FluidFillableprotected int method_26376(Random random)
method_26376 in class AbstractPlantStemBlock@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class AbstractPlantPartBlockpublic FluidState getFluidState(BlockState state)
getFluidState in class AbstractBlock