Removed registration of layers

This commit is contained in:
thatsIch 2015-06-26 22:50:09 +02:00
parent e21dab14e5
commit 8b921a7b79
6 changed files with 34 additions and 39 deletions

View file

@ -33,10 +33,8 @@ import net.minecraft.world.World;
public interface IPartHelper public interface IPartHelper
{ {
/** /**
* Register a new layer with the part layer system, this allows you to write * Register a new layer with the part layer system, this allows you to write an in between between tile entities and parts.
* an in between between tile entities and parts.
* *
* AE By Default includes, * AE By Default includes,
* *
@ -54,11 +52,9 @@ public interface IPartHelper
* *
* 7. IPipeConnection BC Pipe Connections * 7. IPipeConnection BC Pipe Connections
* *
* As long as a valid layer is registered for a interface you can simply * As long as a valid layer is registered for a interface you can simply implement that interface on a part get implement it.
* implement that interface on a part get implement it.
* *
* @return true on success, false on failure, usually a error will be logged * @return true on success, false on failure, usually a error will be logged as well.
* as well.
*/ */
boolean registerNewLayer( String string, String layerInterface ); boolean registerNewLayer( String string, String layerInterface );
@ -70,11 +66,11 @@ public interface IPartHelper
/** /**
* use in use item, to try and place a IBusItem * use in use item, to try and place a IBusItem
* *
* @param is ItemStack of an item which implements {@link IPartItem} * @param is ItemStack of an item which implements {@link IPartItem}
* @param BlockPos pos of part * @param pos pos of part
* @param side side which the part should be on * @param side side which the part should be on
* @param player player placing part * @param player player placing part
* @param world part in world * @param world part in world
* *
* @return true if placing was successful * @return true if placing was successful
*/ */

View file

@ -68,8 +68,6 @@ import appeng.core.localization.GuiText;
import appeng.core.localization.PlayerMessages; import appeng.core.localization.PlayerMessages;
import appeng.core.stats.PlayerStatsRegistration; import appeng.core.stats.PlayerStatsRegistration;
import appeng.hooks.TickHandler; import appeng.hooks.TickHandler;
import appeng.integration.IntegrationRegistry;
import appeng.integration.IntegrationType;
import appeng.items.materials.ItemMultiMaterial; import appeng.items.materials.ItemMultiMaterial;
import appeng.me.cache.CraftingGridCache; import appeng.me.cache.CraftingGridCache;
import appeng.me.cache.EnergyGridCache; import appeng.me.cache.EnergyGridCache;
@ -229,25 +227,26 @@ public final class Registration
final Runnable recipeLoader = new RecipeLoader( this.recipeHandler ); final Runnable recipeLoader = new RecipeLoader( this.recipeHandler );
recipeLoader.run(); recipeLoader.run();
partHelper.registerNewLayer( "appeng.parts.layers.LayerISidedInventory", "net.minecraft.inventory.ISidedInventory" ); // TODO readd layers
partHelper.registerNewLayer( "appeng.parts.layers.LayerIFluidHandler", "net.minecraftforge.fluids.IFluidHandler" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerISidedInventory", "net.minecraft.inventory.ISidedInventory" );
partHelper.registerNewLayer( "appeng.parts.layers.LayerITileStorageMonitorable", "appeng.api.implementations.tiles.ITileStorageMonitorable" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerIFluidHandler", "net.minecraftforge.fluids.IFluidHandler" );
// partHelper.registerNewLayer( "appeng.parts.layers.LayerITileStorageMonitorable", "appeng.api.implementations.tiles.ITileStorageMonitorable" );
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.IC2 ) ) // if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.IC2 ) )
{ // {
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySink", "ic2.api.energy.tile.IEnergySink" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySink", "ic2.api.energy.tile.IEnergySink" );
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySource", "ic2.api.energy.tile.IEnergySource" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergySource", "ic2.api.energy.tile.IEnergySource" );
} // }
//
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.RF ) ) // if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.RF ) )
{ // {
partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergyHandler", "cofh.api.energy.IEnergyReceiver" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerIEnergyHandler", "cofh.api.energy.IEnergyReceiver" );
} // }
//
if ( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.OpenComputers ) ) // if ( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.OpenComputers ) )
{ // {
partHelper.registerNewLayer( "appeng.parts.layers.LayerSidedEnvironment", "li.cil.oc.api.network.SidedEnvironment" ); // partHelper.registerNewLayer( "appeng.parts.layers.LayerSidedEnvironment", "li.cil.oc.api.network.SidedEnvironment" );
} // }
FMLCommonHandler.instance().bus().register( TickHandler.INSTANCE ); FMLCommonHandler.instance().bus().register( TickHandler.INSTANCE );
MinecraftForge.EVENT_BUS.register( TickHandler.INSTANCE ); MinecraftForge.EVENT_BUS.register( TickHandler.INSTANCE );

View file

@ -140,7 +140,7 @@ shaped=
shaped= shaped=
mc:iron_ingot cable mc:iron_ingot, mc:iron_ingot cable mc:iron_ingot,
ae2:BlockQuartzGlass ae2:BlockFluix ae2:BlockQuartzGlass, ae2:BlockQuartzGlass ae2:fluix ae2:BlockQuartzGlass,
mc:iron_ingot cable mc:iron_ingot mc:iron_ingot cable mc:iron_ingot
-> ae2:BlockQuartzGrowthAccelerator -> ae2:BlockQuartzGrowthAccelerator

View file

@ -92,7 +92,7 @@ shaped=
shaped= shaped=
oredictionary:crystalFluix oredictionary:crystalFluix, oredictionary:crystalFluix oredictionary:crystalFluix,
oredictionary:crystalFluix oredictionary:crystalFluix oredictionary:crystalFluix oredictionary:crystalFluix
-> ae2:BlockFluix -> ae2:fluix
# Pure Storage Blocks # Pure Storage Blocks
@ -112,7 +112,7 @@ shaped=
ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal, ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal,
ae2:ItemMaterial.PurifiedFluixCrystal _ ae2:ItemMaterial.PurifiedFluixCrystal, ae2:ItemMaterial.PurifiedFluixCrystal _ ae2:ItemMaterial.PurifiedFluixCrystal,
ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal ae2:ItemMaterial.PurifiedFluixCrystal
-> ae2:BlockFluix -> ae2:fluix
@ -142,7 +142,7 @@ shaped=
-> 4 ae2:ItemMaterial.CertusQuartzCrystal -> 4 ae2:ItemMaterial.CertusQuartzCrystal
shapeless= shapeless=
ae2:BlockFluix ae2:fluix
-> 4 ae2:ItemMaterial.FluixCrystal -> 4 ae2:ItemMaterial.FluixCrystal
# Quantum Pearl # Quantum Pearl

View file

@ -3,7 +3,7 @@ shaped=
-> 6 ae2:ChiseledQuartzSlabBlock -> 6 ae2:ChiseledQuartzSlabBlock
shaped= shaped=
ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix ae2:fluix ae2:fluix ae2:fluix
-> 6 ae2:FluixSlabBlock -> 6 ae2:FluixSlabBlock
shaped= shaped=

View file

@ -5,9 +5,9 @@ shaped=
-> 4 ae2:ChiseledQuartzStairBlock -> 4 ae2:ChiseledQuartzStairBlock
shaped= shaped=
ae2:BlockFluix _ _, ae2:fluix _ _,
ae2:BlockFluix ae2:BlockFluix _, ae2:fluix ae2:fluix _,
ae2:BlockFluix ae2:BlockFluix ae2:BlockFluix ae2:fluix ae2:fluix ae2:fluix
-> 4 ae2:FluixStairBlock -> 4 ae2:FluixStairBlock
shaped= shaped=