public class TallPlantBlock extends PlantBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static EnumProperty<DoubleBlockHalf> |
HALF |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
TallPlantBlock(AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
boolean |
canPlaceAt(BlockState state,
WorldView world,
BlockPos pos) |
AbstractBlock.OffsetType |
getOffsetType() |
BlockState |
getPlacementState(ItemPlacementContext ctx) |
long |
getRenderingSeed(BlockState state,
BlockPos pos) |
BlockState |
getStateForNeighborUpdate(BlockState state,
Direction direction,
BlockState newState,
WorldAccess world,
BlockPos pos,
BlockPos posFrom) |
protected static void |
method_30036(World world,
BlockPos blockPos,
BlockState blockState,
PlayerEntity playerEntity) |
void |
onBreak(World world,
BlockPos pos,
BlockState state,
PlayerEntity player) |
void |
onPlaced(World world,
BlockPos pos,
BlockState state,
LivingEntity placer,
ItemStack itemStack) |
void |
placeAt(WorldAccess world,
BlockPos pos,
int flags) |
canPathfindThrough, canPlantOnTop, isTranslucentaddStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, 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, isSideSolidFullSquare, method_30094, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOpacity, getOutlineShape, getPistonBehavior, getRayTraceShape, 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
public TallPlantBlock(AbstractBlock.Settings settings)
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class PlantBlock@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockpublic void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class PlantBlockpublic void placeAt(WorldAccess world, BlockPos pos, int flags)
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
protected static void method_30036(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic AbstractBlock.OffsetType getOffsetType()
getOffsetType in class AbstractBlock@Environment(value=CLIENT) public long getRenderingSeed(BlockState state, BlockPos pos)
getRenderingSeed in class AbstractBlock