public class TallPlantBlock extends PlantBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
static EnumProperty<DoubleBlockHalf> |
HALF |
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
TallPlantBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
afterBreak(World world,
PlayerEntity player,
BlockPos pos,
BlockState state,
BlockEntity blockEntity,
ItemStack stack) |
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,
IWorld world,
BlockPos pos,
BlockPos posFrom) |
void |
onBreak(World world,
BlockPos pos,
BlockState state,
PlayerEntity player) |
void |
onPlaced(World world,
BlockPos pos,
BlockState state,
LivingEntity placer,
ItemStack itemStack) |
void |
placeAt(IWorld world,
BlockPos pos,
int flags) |
canPathfindThrough, canPlantOnTop, isTranslucent
addStacksForDisplay, 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, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, 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, onBlockAction, onBlockAdded, onBlockBreakStart, onBlockRemoved, onEntityCollision, onProjectileHit, onStacksDropped, onUse, prepare, randomTick, rotate, scheduledTick
public static final EnumProperty<DoubleBlockHalf> HALF
public TallPlantBlock(AbstractBlock.Settings settings)
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, IWorld world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate
in class PlantBlock
@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState
in class Block
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt
in class PlantBlock
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
afterBreak
in class Block
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block
public AbstractBlock.OffsetType getOffsetType()
getOffsetType
in class AbstractBlock
@Environment(value=CLIENT) public long getRenderingSeed(BlockState state, BlockPos pos)
getRenderingSeed
in class AbstractBlock