public class DoublePlantBlock extends BushBlock
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static EnumProperty<DoubleBlockHalf> |
HALF |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
DoublePlantBlock(AbstractBlock.Properties p_i48412_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSurvive(BlockState p_196260_1_,
IWorldReader p_196260_2_,
BlockPos p_196260_3_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
AbstractBlock.OffsetType |
getOffsetType() |
long |
getSeed(BlockState p_209900_1_,
BlockPos p_209900_2_) |
BlockState |
getStateForPlacement(BlockItemUseContext p_196258_1_) |
void |
placeAt(IWorld p_196390_1_,
BlockPos p_196390_2_,
int p_196390_3_) |
void |
playerDestroy(World p_180657_1_,
PlayerEntity p_180657_2_,
BlockPos p_180657_3_,
BlockState p_180657_4_,
TileEntity p_180657_5_,
ItemStack p_180657_6_) |
void |
playerWillDestroy(World p_176208_1_,
BlockPos p_176208_2_,
BlockState p_176208_3_,
PlayerEntity p_176208_4_) |
protected static void |
preventCreativeDropFromBottomPart(World p_241471_0_,
BlockPos p_241471_1_,
BlockState p_241471_2_,
PlayerEntity p_241471_3_) |
void |
setPlacedBy(World p_180633_1_,
BlockPos p_180633_2_,
BlockState p_180633_3_,
LivingEntity p_180633_4_,
ItemStack p_180633_5_) |
BlockState |
updateShape(BlockState p_196271_1_,
Direction p_196271_2_,
BlockState p_196271_3_,
IWorld p_196271_4_,
BlockPos p_196271_5_,
BlockPos p_196271_6_) |
getPlant, isPathfindable, mayPlaceOn, propagatesSkylightDown
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, popExperience, popResource, pushEntitiesUp, registerDefaultState, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getPistonPushReaction, getRenderShape, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPlantType
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final EnumProperty<DoubleBlockHalf> HALF
public DoublePlantBlock(AbstractBlock.Properties p_i48412_1_)
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
updateShape
in class BushBlock
@Nullable public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
getStateForPlacement
in class Block
public void setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_)
setPlacedBy
in class Block
public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
canSurvive
in class BushBlock
public void playerWillDestroy(World p_176208_1_, BlockPos p_176208_2_, BlockState p_176208_3_, PlayerEntity p_176208_4_)
playerWillDestroy
in class Block
public void playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, @Nullable TileEntity p_180657_5_, ItemStack p_180657_6_)
playerDestroy
in class Block
protected static void preventCreativeDropFromBottomPart(World p_241471_0_, BlockPos p_241471_1_, BlockState p_241471_2_, PlayerEntity p_241471_3_)
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public AbstractBlock.OffsetType getOffsetType()
getOffsetType
in class AbstractBlock
public long getSeed(BlockState p_209900_1_, BlockPos p_209900_2_)
getSeed
in class AbstractBlock