TechReborn/src/main/java/techreborn/proxies/CommonProxy.java

93 lines
2.8 KiB
Java
Raw Normal View History

/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2017 TechReborn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
2015-04-23 21:29:26 +02:00
package techreborn.proxies;
import net.minecraft.block.Block;
2016-11-28 13:54:44 +01:00
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.Loader;
2016-03-13 12:50:46 +01:00
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
2016-11-28 13:54:44 +01:00
import techreborn.Core;
2016-03-13 12:50:46 +01:00
import techreborn.compat.ICompatModule;
2015-04-23 21:29:26 +02:00
2016-10-08 21:46:16 +02:00
public class CommonProxy implements ICompatModule {
2016-11-28 13:54:44 +01:00
public static boolean isChiselAround;
2016-03-13 12:50:46 +01:00
2016-03-25 10:47:34 +01:00
@Override
2016-10-08 21:46:16 +02:00
public void preInit(FMLPreInitializationEvent event) {
2016-11-28 13:54:44 +01:00
isChiselAround = Loader.isModLoaded("chisel");
if (isChiselAround) {
Core.logHelper.info("Hello chisel, shiny things will be enabled in techreborn");
}
2016-03-25 10:47:34 +01:00
}
2016-03-13 12:50:46 +01:00
2016-03-25 10:47:34 +01:00
@Override
2016-10-08 21:46:16 +02:00
public void init(FMLInitializationEvent event) {
2016-03-13 12:50:46 +01:00
2016-03-25 10:47:34 +01:00
}
2016-03-25 10:47:34 +01:00
@Override
2016-10-08 21:46:16 +02:00
public void postInit(FMLPostInitializationEvent event) {
2016-03-25 10:47:34 +01:00
}
2016-03-13 12:50:46 +01:00
2016-03-25 10:47:34 +01:00
@Override
2016-10-08 21:46:16 +02:00
public void serverStarting(FMLServerStartingEvent event) {
2016-03-13 12:50:46 +01:00
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
public void registerFluidBlockRendering(Block block, String name) {
}
2016-11-28 13:54:44 +01:00
public void registerCustomBlockStateLocation(Block block, String name) {
}
public void registerCustomBlockStateLocation(Block block, String name, boolean item) {
}
public void registerSubItemInventoryLocation(Item item, int meta, String location, String name) {
}
public void registerSubBlockInventoryLocation(Block block, int meta, String location, String name) {
registerSubItemInventoryLocation(Item.getItemFromBlock(block), meta, location, name);
}
public boolean isCTMAvailable() {
return false;
}
public String getUpgradeConfigText(){
return "";
}
2015-04-23 21:29:26 +02:00
}