public class ChorusFlowerBlock extends Block
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 IntegerProperty |
AGE |
private ChorusPlantBlock |
plant |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
ChorusFlowerBlock(ChorusPlantBlock p_i48429_1_,
AbstractBlock.Properties p_i48429_2_) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
allNeighborsEmpty(IWorldReader p_185604_0_,
BlockPos p_185604_1_,
Direction p_185604_2_) |
boolean |
canSurvive(BlockState p_196260_1_,
IWorldReader p_196260_2_,
BlockPos p_196260_3_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
static void |
generatePlant(IWorld p_185603_0_,
BlockPos p_185603_1_,
java.util.Random p_185603_2_,
int p_185603_3_) |
private static void |
growTreeRecursive(IWorld p_185601_0_,
BlockPos p_185601_1_,
java.util.Random p_185601_2_,
BlockPos p_185601_3_,
int p_185601_4_,
int p_185601_5_) |
boolean |
isRandomlyTicking(BlockState p_149653_1_) |
void |
onProjectileHit(World p_220066_1_,
BlockState p_220066_2_,
BlockRayTraceResult p_220066_3_,
ProjectileEntity p_220066_4_) |
private void |
placeDeadFlower(World p_185605_1_,
BlockPos p_185605_2_) |
private void |
placeGrownFlower(World p_185602_1_,
BlockPos p_185602_2_,
int p_185602_3_) |
void |
randomTick(BlockState p_225542_1_,
ServerWorld p_225542_2_,
BlockPos p_225542_3_,
java.util.Random p_225542_4_) |
void |
tick(BlockState p_225534_1_,
ServerWorld p_225534_2_,
BlockPos p_225534_3_,
java.util.Random p_225534_4_) |
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_) |
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, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, 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, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onRemove, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 IntegerProperty AGE
private final ChorusPlantBlock plant
public ChorusFlowerBlock(ChorusPlantBlock p_i48429_1_, AbstractBlock.Properties p_i48429_2_)
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.Random p_225534_4_)
tick
in class AbstractBlock
public boolean isRandomlyTicking(BlockState p_149653_1_)
isRandomlyTicking
in class Block
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
randomTick
in class AbstractBlock
private void placeGrownFlower(World p_185602_1_, BlockPos p_185602_2_, int p_185602_3_)
private static boolean allNeighborsEmpty(IWorldReader p_185604_0_, BlockPos p_185604_1_, @Nullable Direction p_185604_2_)
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 AbstractBlock
public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
canSurvive
in class AbstractBlock
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public static void generatePlant(IWorld p_185603_0_, BlockPos p_185603_1_, java.util.Random p_185603_2_, int p_185603_3_)
private static void growTreeRecursive(IWorld p_185601_0_, BlockPos p_185601_1_, java.util.Random p_185601_2_, BlockPos p_185601_3_, int p_185601_4_, int p_185601_5_)
public void onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_)
onProjectileHit
in class AbstractBlock