Package net.minecraft.block
Class TallSeagrassBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.TallPlantBlock
net.minecraft.block.TallSeagrassBlock
- All Implemented Interfaces:
FluidFillable,ItemConvertible
public class TallSeagrassBlock extends TallPlantBlock 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 static EnumProperty<DoubleBlockHalf>HALFprotected static VoxelShapeSHAPEFields 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 Constructor Description TallSeagrassBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description booleancanFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)protected booleancanPlantOnTop(BlockState floor, BlockView world, BlockPos pos)FluidStategetFluidState(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)ItemStackgetPickStack(BlockView world, BlockPos pos, BlockState state)BlockStategetPlacementState(ItemPlacementContext ctx)booleantryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)Methods inherited from class net.minecraft.block.TallPlantBlock
afterBreak, appendProperties, getOffsetType, getRenderingSeed, getStateForNeighborUpdate, onBreak, onBreakInCreative, onPlaced, placeAtMethods inherited from class net.minecraft.block.PlantBlock
canPathfindThrough, isTranslucentMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
HALF
-
SHAPE
-
-
Constructor Details
-
TallSeagrassBlock
-
-
Method Details
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
canPlantOnTop
- Overrides:
canPlantOnTopin classPlantBlock
-
getPickStack
@Environment(CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)- Overrides:
getPickStackin classBlock
-
getPlacementState
- Overrides:
getPlacementStatein classTallPlantBlock
-
canPlaceAt
- Overrides:
canPlaceAtin classTallPlantBlock
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock
-
canFillWithFluid
- Specified by:
canFillWithFluidin interfaceFluidFillable
-
tryFillWithFluid
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)- Specified by:
tryFillWithFluidin interfaceFluidFillable
-