Package net.minecraft.block
Class KelpBlock
- All Implemented Interfaces:
Fertilizable,FluidFillable,ItemConvertible
public class KelpBlock extends AbstractPlantStemBlock implements FluidFillable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description protected static VoxelShapeSHAPEFields inherited from class net.minecraft.block.AbstractPlantStemBlock
AGEFields inherited from class net.minecraft.block.AbstractPlantPartBlock
growthDirection, outlineShape, tickWaterFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Modifier Constructor Description protectedKelpBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected booleancanAttachTo(BlockState state)booleancanFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)protected booleanchooseStemState(BlockState state)FluidStategetFluidState(BlockState state)BlockStategetPlacementState(ItemPlacementContext ctx)protected BlockgetPlant()protected intmethod_26376(Random random)booleantryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)Methods inherited from class net.minecraft.block.AbstractPlantStemBlock
appendProperties, canGrow, getRandomGrowthState, getStateForNeighborUpdate, getStem, grow, hasRandomTicks, isFertilizable, randomTickMethods inherited from class net.minecraft.block.AbstractPlantPartBlock
canPlaceAt, getOutlineShape, scheduledTickMethods inherited from class net.minecraft.block.Block
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, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate
-
Field Details
-
SHAPE
-
-
Constructor Details
-
KelpBlock
-
-
Method Details
-
chooseStemState
- Specified by:
chooseStemStatein classAbstractPlantStemBlock
-
getPlant
- Specified by:
getPlantin classAbstractPlantPartBlock
-
canAttachTo
- Overrides:
canAttachToin classAbstractPlantPartBlock
-
canFillWithFluid
- Specified by:
canFillWithFluidin interfaceFluidFillable
-
tryFillWithFluid
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)- Specified by:
tryFillWithFluidin interfaceFluidFillable
-
method_26376
- Specified by:
method_26376in classAbstractPlantStemBlock
-
getPlacementState
- Overrides:
getPlacementStatein classAbstractPlantPartBlock
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock
-