public class TallSeagrassBlock extends TallPlantBlock implements FluidFillable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static EnumProperty<DoubleBlockHalf> |
HALF |
protected static VoxelShape |
SHAPE |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
TallSeagrassBlock(AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFillWithFluid(BlockView world,
BlockPos pos,
BlockState state,
Fluid fluid) |
boolean |
canPlaceAt(BlockState state,
WorldView world,
BlockPos pos) |
protected boolean |
canPlantOnTop(BlockState floor,
BlockView world,
BlockPos pos) |
FluidState |
getFluidState(BlockState state) |
VoxelShape |
getOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
ItemStack |
getPickStack(BlockView world,
BlockPos pos,
BlockState state) |
BlockState |
getPlacementState(ItemPlacementContext ctx) |
boolean |
tryFillWithFluid(WorldAccess world,
BlockPos pos,
BlockState state,
FluidState fluidState) |
afterBreak, appendProperties, getOffsetType, getRenderingSeed, getStateForNeighborUpdate, onBreak, onBreakInCreative, onPlaced, placeAtcanPathfindThrough, isTranslucentaddStacksForDisplay, 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, is, isFaceFullSquare, isIn, isShapeFullCube, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOpacity, getPistonBehavior, getRaycastShape, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTickpublic static final EnumProperty<DoubleBlockHalf> HALF
protected static final VoxelShape SHAPE
public TallSeagrassBlock(AbstractBlock.Settings settings)
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockprotected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos)
canPlantOnTop in class PlantBlock@Environment(value=CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)
getPickStack in class Block@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class TallPlantBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class TallPlantBlockpublic FluidState getFluidState(BlockState state)
getFluidState in class AbstractBlockpublic 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 FluidFillable