Developer API 2.3.x - GrowthcraftCE/Growthcraft-1.7 GitHub Wiki

Warning, this document is a WIP

The Growthcraft API has undergone a minor refactor, where the CellarRegistry was split into smaller classes.

Ferment Barrel / Booze

The BoozeRegistry is obtained via the CellarRegistry.booze() method

Example

import growthcraft.api.cellar.CellarRegistry;

...

CellarRegistry.booze();

Brew Kettle / Brewing

The BrewingRegistry is obtained via the CellarRegistry.brewing() method

Example

import growthcraft.api.cellar.CellarRegistry;

...

CellarRegistry.brewing();

Fruit Press / Pressing

The PressingRegistry is obtained via the CellarRegistry.pressing() method

Example

import growthcraft.api.cellar.CellarRegistry;

...

CellarRegistry.pressing();

Vine Drops

Vine drops are found in growthcraft.api.core.CoreRegistry

Example Usage

import growthcraft.api.core.CoreRegistry;
import net.minecraft.item.ItemStack;

...

ItemStack item = new ItemStack(yourItem, stackSize, damage);
int weight = 12;
CoreRegistry.addVineDrop(item, weight);