2015-11-02 12:39:44 -08:00
|
|
|
package WayofTime.bloodmagic.proxy;
|
2015-10-29 20:22:14 -07:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
import WayofTime.bloodmagic.api.ritual.CapabilityRuneType;
|
|
|
|
import WayofTime.bloodmagic.api.ritual.IRitualStone;
|
|
|
|
import WayofTime.bloodmagic.api.teleport.TeleportQueue;
|
|
|
|
import WayofTime.bloodmagic.fuel.FuelHandler;
|
|
|
|
import com.google.common.collect.ImmutableMap;
|
2016-05-05 07:59:08 -04:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.Item;
|
2016-09-14 08:47:46 -04:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2016-05-05 07:59:08 -04:00
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2016-09-14 08:47:46 -04:00
|
|
|
import net.minecraftforge.common.animation.ITimeValue;
|
2016-05-05 07:59:08 -04:00
|
|
|
import net.minecraftforge.common.capabilities.CapabilityManager;
|
2016-09-14 08:47:46 -04:00
|
|
|
import net.minecraftforge.common.model.animation.IAnimationStateMachine;
|
2016-05-05 07:59:08 -04:00
|
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
2016-09-14 08:47:46 -04:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class CommonProxy {
|
|
|
|
public void preInit() {
|
2016-02-18 17:25:11 +01:00
|
|
|
MinecraftForge.EVENT_BUS.register(TeleportQueue.getInstance());
|
2016-05-05 07:59:08 -04:00
|
|
|
GameRegistry.registerFuelHandler(new FuelHandler());
|
2016-01-08 14:56:36 -05:00
|
|
|
registerRenderers();
|
2015-10-29 20:22:14 -07:00
|
|
|
}
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public void init() {
|
2016-03-16 18:41:06 -04:00
|
|
|
CapabilityManager.INSTANCE.register(IRitualStone.Tile.class, new CapabilityRuneType.RuneTypeStorage(), new CapabilityRuneType.Factory());
|
2015-10-29 20:22:14 -07:00
|
|
|
}
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public void postInit() {
|
2015-10-29 20:22:14 -07:00
|
|
|
|
|
|
|
}
|
2016-01-08 14:56:36 -05:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public void registerRenderers() {
|
2016-01-08 14:56:36 -05:00
|
|
|
|
|
|
|
}
|
2016-01-15 15:06:03 -05:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public Object beamCont(World worldObj, double xi, double yi, double zi, double tx, double ty, double tz, int type, int color, boolean reverse, float endmod, Object input, int impact) {
|
2016-01-15 15:06:03 -05:00
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
2016-03-15 22:48:01 -07:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public void tryHandleBlockModel(Block block, String name) {
|
2016-03-15 22:48:01 -07:00
|
|
|
// NO-OP
|
|
|
|
}
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public void tryHandleItemModel(Item item, String name) {
|
2016-03-15 22:48:01 -07:00
|
|
|
// NO-OP
|
|
|
|
}
|
2016-09-14 08:47:46 -04:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public IAnimationStateMachine load(ResourceLocation location, ImmutableMap<String, ITimeValue> parameters) {
|
2016-09-14 08:47:46 -04:00
|
|
|
return null;
|
|
|
|
}
|
2015-10-29 20:22:14 -07:00
|
|
|
}
|