Merge branch 'BOP-1.8-3.0.x' of https://github.com/Glitchfiend/BiomesOPlenty into BOP-1.8-3.0.x
This commit is contained in:
commit
be3df43779
4 changed files with 15 additions and 2 deletions
|
@ -18,6 +18,8 @@ import net.minecraft.world.WorldType;
|
|||
import net.minecraftforge.client.event.GuiScreenEvent.DrawScreenEvent;
|
||||
import net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import biomesoplenty.common.config.MiscConfigurationHandler;
|
||||
import biomesoplenty.common.init.ModBiomes;
|
||||
|
||||
|
@ -25,6 +27,7 @@ public class GuiEventHandler
|
|||
{
|
||||
public static int blockCount = 0;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void onPreInitCreateWorld(InitGuiEvent.Pre event)
|
||||
{
|
||||
|
@ -38,6 +41,7 @@ public class GuiEventHandler
|
|||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void onDrawScreen(DrawScreenEvent.Post event)
|
||||
{
|
||||
|
|
|
@ -76,7 +76,7 @@ public class ModBlocks
|
|||
{
|
||||
String stateName = block.getStateName(state, true);
|
||||
|
||||
ModelBakery.addVariantName(Item.getItemFromBlock(block), BiomesOPlenty.MOD_ID + ":" + stateName);
|
||||
BiomesOPlenty.proxy.addVariantName(Item.getItemFromBlock(block), BiomesOPlenty.MOD_ID + ":" + stateName);
|
||||
BiomesOPlenty.proxy.registerBlockForMeshing(block, block.getMetaFromState(state), stateName);
|
||||
|
||||
GuiEventHandler.blockCount++;
|
||||
|
@ -86,7 +86,7 @@ public class ModBlocks
|
|||
{
|
||||
GameRegistry.registerBlock(block, name);
|
||||
|
||||
ModelBakery.addVariantName(Item.getItemFromBlock(block), BiomesOPlenty.MOD_ID + ":" + name);
|
||||
BiomesOPlenty.proxy.addVariantName(Item.getItemFromBlock(block), BiomesOPlenty.MOD_ID + ":" + name);
|
||||
BiomesOPlenty.proxy.registerBlockForMeshing(block, 0, name);
|
||||
|
||||
GuiEventHandler.blockCount++;
|
||||
|
|
|
@ -11,6 +11,7 @@ package biomesoplenty.core;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import net.minecraft.client.resources.model.ModelBakery;
|
||||
import net.minecraft.item.Item;
|
||||
import biomesoplenty.api.block.BOPBlock;
|
||||
import biomesoplenty.client.util.ModelHelper;
|
||||
|
@ -28,6 +29,12 @@ public class ClientProxy extends CommonProxy
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addVariantName(Item item, String... names)
|
||||
{
|
||||
ModelBakery.addVariantName(item, names);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockForMeshing(BOPBlock block, int metadata, String name)
|
||||
{
|
||||
|
|
|
@ -18,6 +18,8 @@ public class CommonProxy
|
|||
{
|
||||
}
|
||||
|
||||
public void addVariantName(Item item, String... names) {}
|
||||
|
||||
public void registerBlockForMeshing(BOPBlock block, int metadata, String name)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue