public class KelpBlock extends AbstractPlantStemBlock implements FluidFillable
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
SHAPE |
AGE
growthDirection, outlineShape, tickWater
LOGGER, STATE_IDS, stateManager
collidable, 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, randomTick
canPlaceAt, getOutlineShape, scheduledTick
addStacksForDisplay, 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, toString
calcBlockBreakingDelta, 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, rotate
protected static final VoxelShape SHAPE
protected KelpBlock(AbstractBlock.Settings settings)
protected boolean chooseStemState(BlockState state)
chooseStemState
in class AbstractPlantStemBlock
protected Block getPlant()
getPlant
in class AbstractPlantPartBlock
protected boolean canAttachTo(Block block)
canAttachTo
in class AbstractPlantPartBlock
public boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
canFillWithFluid
in interface FluidFillable
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
tryFillWithFluid
in interface FluidFillable
protected int method_26376(Random random)
method_26376
in class AbstractPlantStemBlock
@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState
in class AbstractPlantPartBlock
public FluidState getFluidState(BlockState state)
getFluidState
in class AbstractBlock