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.NeighborGroup
Nested 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 VoxelShape
SHAPE
Fields inherited from class net.minecraft.block.AbstractPlantStemBlock
AGE
Fields inherited from class net.minecraft.block.AbstractPlantPartBlock
growthDirection, outlineShape, tickWater
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields 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 protected
KelpBlock(AbstractBlock.Settings settings)
-
Method Summary
Modifier and Type Method Description protected boolean
canAttachTo(BlockState state)
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)
Methods inherited from class net.minecraft.block.AbstractPlantStemBlock
appendProperties, canGrow, getRandomGrowthState, getStateForNeighborUpdate, getStem, grow, hasRandomTicks, isFertilizable, randomTick
Methods inherited from class net.minecraft.block.AbstractPlantPartBlock
canPlaceAt, getOutlineShape, scheduledTick
Methods 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, toString
Methods 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:
chooseStemState
in classAbstractPlantStemBlock
-
getPlant
- Specified by:
getPlant
in classAbstractPlantPartBlock
-
canAttachTo
- Overrides:
canAttachTo
in classAbstractPlantPartBlock
-
canFillWithFluid
- Specified by:
canFillWithFluid
in interfaceFluidFillable
-
tryFillWithFluid
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)- Specified by:
tryFillWithFluid
in interfaceFluidFillable
-
method_26376
- Specified by:
method_26376
in classAbstractPlantStemBlock
-
getPlacementState
- Overrides:
getPlacementState
in classAbstractPlantPartBlock
-
getFluidState
- Overrides:
getFluidState
in classAbstractBlock
-