public class MinecraftForge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static net.minecraftforge.eventbus.api.IEventBus |
EVENT_BUS
The core Forge EventBusses, all events for Forge will be fired on these,
you should use this to register all your listeners.
|
Constructor and Description |
---|
MinecraftForge() |
Modifier and Type | Method and Description |
---|---|
static void |
addGrassSeed(ForgeHooks.SeedEntry seed) |
static void |
addGrassSeed(ItemStack seed,
int weight)
Register a new seed to be dropped when breaking tall grass.
|
static void |
initialize()
Method invoked by FML before any other mods are loaded.
|
public static final net.minecraftforge.eventbus.api.IEventBus EVENT_BUS
public static void addGrassSeed(@Nonnull ItemStack seed, int weight)
seed
- The item to drop as a seed.weight
- The relative probability of the seeds,
where wheat seeds are 10.
Note: These functions may be going away soon, we're looking into loot tables....public static void addGrassSeed(ForgeHooks.SeedEntry seed)
public static void initialize()