-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommonProxy.java
29 lines (24 loc) · 1.03 KB
/
CommonProxy.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package dime;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CommonProxy {
public static CreativeTabs bladeTab = new CreativeTabs("DIME") {
@Override
public Item getTabIconItem() {
return pointer;
}
};
public static Item pointer;
public SelectedStats stats = new SelectedStats();
public void init(FMLPreInitializationEvent evt){
pointer = new ItemPointer().setUnlocalizedName("pointer").setTextureName("dime:pointer").setCreativeTab(bladeTab).setMaxStackSize(1);
GameRegistry.registerItem(pointer, "pointer");
}
public void onServerStart(FMLServerStartingEvent p){
p.registerServerCommand(new Command("doyoucareaboutcheating", "/doyoucareaboutcheating <yes/no>", new CommandTest()));
}
}