Renamed constants
This commit is contained in:
@@ -38,7 +38,7 @@ public class AEApi
|
||||
/**
|
||||
* API Entry Point.
|
||||
*
|
||||
* @return the {@link IAppEngApi} or null if the instance could not be retrieved
|
||||
* @return the {@link IAppEngApi} or null if the INSTANCE could not be retrieved
|
||||
*/
|
||||
public static IAppEngApi instance()
|
||||
{
|
||||
@@ -47,7 +47,7 @@ public class AEApi
|
||||
try
|
||||
{
|
||||
Class c = Class.forName( "appeng.core.Api" );
|
||||
api = (IAppEngApi) c.getField( "instance" ).get( c );
|
||||
api = (IAppEngApi) c.getField( "INSTANCE" ).get( c );
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface IGridCacheRegistry
|
||||
void registerGridCache(Class<? extends IGridCache> iface, Class<? extends IGridCache> implementation);
|
||||
|
||||
/**
|
||||
* requests a new instance of a grid cache for use, used internally
|
||||
* requests a new INSTANCE of a grid cache for use, used internally
|
||||
*
|
||||
* @param grid grid
|
||||
*
|
||||
|
||||
@@ -46,7 +46,7 @@ public interface IGridHost
|
||||
* feel free to ignore this, most blocks will use the same node
|
||||
* for every side.
|
||||
* @return a new IGridNode, create these with
|
||||
* AEApi.instance().createGridNode( MyIGridBlock )
|
||||
* AEApi.INSTANCE().createGridNode( MyIGridBlock )
|
||||
*/
|
||||
public IGridNode getGridNode(ForgeDirection dir);
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import appeng.api.storage.data.IAEItemStack;
|
||||
/**
|
||||
* do not implement provided by {@link ICraftingPatternItem}
|
||||
*
|
||||
* caching this instance will increase performance of validation and checks.
|
||||
* caching this INSTANCE will increase performance of validation and checks.
|
||||
*/
|
||||
public interface ICraftingPatternDetails
|
||||
{
|
||||
@@ -82,7 +82,7 @@ public interface ICraftingPatternDetails
|
||||
boolean canSubstitute();
|
||||
|
||||
/**
|
||||
* Allow using this instance of the pattern details to preform the crafting action with performance enhancements.
|
||||
* Allow using this INSTANCE of the pattern details to preform the crafting action with performance enhancements.
|
||||
*
|
||||
* @param craftingInv inventory
|
||||
* @param world crafting world
|
||||
|
||||
@@ -34,7 +34,7 @@ public class MENetworkSpatialEvent extends MENetworkEvent
|
||||
public final double spatialEnergyUsage;
|
||||
|
||||
/**
|
||||
* @param SpatialIO ( instance of the SpatialIO block )
|
||||
* @param SpatialIO ( INSTANCE of the SpatialIO block )
|
||||
* @param EnergyUsage ( the amount of energy that the SpatialIO uses)
|
||||
*/
|
||||
public MENetworkSpatialEvent(IGridHost SpatialIO, double EnergyUsage)
|
||||
|
||||
@@ -83,7 +83,7 @@ public interface IPartHost
|
||||
*
|
||||
* @param side side of part
|
||||
* @param suppressUpdate
|
||||
* - used if you need to replace a part's instance, without really removing it first.
|
||||
* - used if you need to replace a part's INSTANCE, without really removing it first.
|
||||
*/
|
||||
void removePart(ForgeDirection side, boolean suppressUpdate);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import net.minecraft.item.ItemStack;
|
||||
/**
|
||||
* This is a pretty basic requirement, once you implement the interface, and createPartFromItemStack
|
||||
*
|
||||
* you must register your bus with the Bus renderer, using AEApi.instance().partHelper().setItemBusRenderer( this );
|
||||
* you must register your bus with the Bus renderer, using AEApi.INSTANCE().partHelper().setItemBusRenderer( this );
|
||||
*
|
||||
* then simply add these two methods, which tell MC to use the Block Textures, and call AE's Bus Placement Code.
|
||||
*
|
||||
@@ -45,7 +45,7 @@ import net.minecraft.item.ItemStack;
|
||||
* {@literal @}Override
|
||||
* public boolean onItemUse(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
|
||||
* {
|
||||
* return AEApi.instance().partHelper().placeBus( is, x, y, z, side, player, world );
|
||||
* return AEApi.INSTANCE().partHelper().placeBus( is, x, y, z, side, player, world );
|
||||
* }
|
||||
* </code>
|
||||
* </pre>
|
||||
@@ -55,7 +55,7 @@ public interface IPartItem
|
||||
{
|
||||
|
||||
/**
|
||||
* create a new part instance, from the item stack.
|
||||
* create a new part INSTANCE, from the item stack.
|
||||
*
|
||||
* @param is item
|
||||
* @return part from item
|
||||
|
||||
@@ -52,7 +52,7 @@ public interface IStorageHelper
|
||||
* @param is
|
||||
* An ItemStack
|
||||
*
|
||||
* @return a new instance of {@link IAEItemStack} from a MC {@link ItemStack}
|
||||
* @return a new INSTANCE of {@link IAEItemStack} from a MC {@link ItemStack}
|
||||
*/
|
||||
IAEItemStack createItemStack(ItemStack is);
|
||||
|
||||
@@ -60,17 +60,17 @@ public interface IStorageHelper
|
||||
* @param is
|
||||
* A FluidStack
|
||||
*
|
||||
* @return a new instance of {@link IAEFluidStack} from a Forge {@link FluidStack}
|
||||
* @return a new INSTANCE of {@link IAEFluidStack} from a Forge {@link FluidStack}
|
||||
*/
|
||||
IAEFluidStack createFluidStack(FluidStack is);
|
||||
|
||||
/**
|
||||
* @return a new instance of {@link IItemList} for items
|
||||
* @return a new INSTANCE of {@link IItemList} for items
|
||||
*/
|
||||
IItemList<IAEItemStack> createItemList();
|
||||
|
||||
/**
|
||||
* @return a new instance of {@link IItemList} for fluids
|
||||
* @return a new INSTANCE of {@link IItemList} for fluids
|
||||
*/
|
||||
IItemList<IAEFluidStack> createFluidList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user