public class MinecraftForge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EventBus |
EVENT_BUS
The core Forge EventBusses, all events for Forge will be fired on these,
you should use this to register all your listeners.
|
static java.lang.String |
MC_VERSION |
static EventBus |
ORE_GEN_BUS |
static EventBus |
TERRAIN_GEN_BUS |
Constructor and Description |
---|
MinecraftForge() |
Modifier and Type | Method and Description |
---|---|
static void |
addGrassSeed(net.minecraftforge.common.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.
|
static void |
preloadCrashClasses(ASMDataTable table,
java.lang.String modID,
java.util.Set<java.lang.String> classes) |
public static final EventBus EVENT_BUS
public static final EventBus TERRAIN_GEN_BUS
public static final EventBus ORE_GEN_BUS
public static final java.lang.String MC_VERSION
public static void addGrassSeed(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(net.minecraftforge.common.ForgeHooks.SeedEntry seed)
public static void initialize()
public static void preloadCrashClasses(ASMDataTable table, java.lang.String modID, java.util.Set<java.lang.String> classes)