public class SeaPickleBlock extends PlantBlock implements Fertilizable, Waterloggable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
FOUR_PICKLES_SHAPE |
protected static VoxelShape |
ONE_PICKLE_SHAPE |
static IntProperty |
PICKLES |
protected static VoxelShape |
THREE_PICKLES_SHAPE |
protected static VoxelShape |
TWO_PICKLES_SHAPE |
static BooleanProperty |
WATERLOGGED |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
SeaPickleBlock(AbstractBlock.Settings settings) |
isTranslucentaddStacksForDisplay, 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, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, 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, randomTick, rotate, scheduledTickclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanFillWithFluid, tryDrainFluid, tryFillWithFluidpublic static final IntProperty PICKLES
public static final BooleanProperty WATERLOGGED
protected static final VoxelShape ONE_PICKLE_SHAPE
protected static final VoxelShape TWO_PICKLES_SHAPE
protected static final VoxelShape THREE_PICKLES_SHAPE
protected static final VoxelShape FOUR_PICKLES_SHAPE
protected SeaPickleBlock(AbstractBlock.Settings settings)
@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockpublic static boolean isDry(BlockState blockState)
protected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos)
canPlantOnTop in class PlantBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class PlantBlockpublic BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class PlantBlockpublic boolean canReplace(BlockState state, ItemPlacementContext context)
canReplace in class AbstractBlockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic FluidState getFluidState(BlockState state)
getFluidState in class AbstractBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient)
isFertilizable in interface Fertilizablepublic boolean canGrow(World world, Random random, BlockPos pos, BlockState state)
canGrow in interface Fertilizablepublic void grow(ServerWorld world, Random random, BlockPos pos, BlockState state)
grow in interface Fertilizablepublic boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough in class PlantBlock