Initial attempts to support forge stuff

This commit is contained in:
Christian Weeks committed 2012-03-31 02:28:14 -04:00
1 parent 160399cee7
commit d6e5df9092
6 files changed
+38 -5

No files matched your search

+9 -4
View File
@@ -1,6 +1,5 @@
/*
* The FML Forge Mod Loader suite.
* Copyright (C) 2012 cpw
* The FML Forge Mod Loader suite. Copyright (C) 2012 cpw
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or any later version.
@@ -39,7 +38,9 @@ public abstract class BaseMod {
public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
}
public String getName() { return ""; }
public String getName() {
return getClass().getSimpleName();
}
public String getPriorities() {
return null;
@@ -55,7 +56,11 @@ public abstract class BaseMod {
public void onItemPickup(EntityPlayer player, ItemStack item) {
}
// boolean onTickInGame(float tick, Minecraft game);
/**
* Ticked every game tick if you have subscribed to tick events through {@link ModLoader#setInGameHook(BaseMod, boolean, boolean)}
* @param minecraftServer the server
* @return true to continue receiving ticks
*/
public boolean onTickInGame(MinecraftServer minecraftServer) {
return false;
}