mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
undid weird replace in railcraft api (wtf?) and some minor cleanup
This commit is contained in:
parent
a4898e269d
commit
48d17315fc
@ -8,14 +8,11 @@ import li.cil.oc.api.prefab.DriverTileEntity;
|
|||||||
import li.cil.occ.mods.ManagedTileEntityEnvironment;
|
import li.cil.occ.mods.ManagedTileEntityEnvironment;
|
||||||
import li.cil.occ.util.Reflection;
|
import li.cil.occ.util.Reflection;
|
||||||
import net.minecraft.inventory.IInventory;
|
import net.minecraft.inventory.IInventory;
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
public final class DriverSteamTurbine extends DriverTileEntity {
|
||||||
public class DriverSteamTurbine extends DriverTileEntity {
|
|
||||||
// See https://bitbucket.org/ChickenBones/enderstorage/
|
|
||||||
private static final Class<?> TileSteamTurbine = Reflection.getClass("mods.railcraft.common.blocks.machine.alpha.TileSteamTurbine");
|
private static final Class<?> TileSteamTurbine = Reflection.getClass("mods.railcraft.common.blocks.machine.alpha.TileSteamTurbine");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -40,21 +37,14 @@ public class DriverSteamTurbine extends DriverTileEntity {
|
|||||||
|
|
||||||
@Callback
|
@Callback
|
||||||
public Object[] getTurbineRotorStatus(final Context context, final Arguments args) {
|
public Object[] getTurbineRotorStatus(final Context context, final Arguments args) {
|
||||||
|
IInventory inventory = Reflection.tryInvoke(tileEntity, "getInventory");
|
||||||
|
if (inventory != null && inventory.getSizeInventory() > 0) {
|
||||||
IInventory inventory = (IInventory) Reflection.tryInvoke(tileEntity, "getInventory");
|
final ItemStack itemStack = inventory.getStackInSlot(0);
|
||||||
|
|
||||||
if (inventory != null && inventory.getSizeInventory() >= 1) {
|
|
||||||
ItemStack itemStack = inventory.getStackInSlot(0);
|
|
||||||
if (itemStack != null) {
|
if (itemStack != null) {
|
||||||
Item item = itemStack.getItem();
|
return new Object[]{100 - (int) (itemStack.getItemDamage() * 100.0 / itemStack.getMaxDamage())};
|
||||||
if (item != null) {
|
|
||||||
return new Object[]{100 - (int) (itemStack.getItemDamage() * 100.0 / item.getMaxDamage())};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new Object[]{null, "no Inventory"};
|
return new Object[]{null, "no Inventory"};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class ModRailcraft implements IMod{
|
public final class ModRailcraft implements IMod {
|
||||||
@Override
|
@Override
|
||||||
public String getModId() {
|
public String getModId() {
|
||||||
return "Railcraft";
|
return "Railcraft";
|
||||||
@ -18,7 +18,6 @@ public class ModRailcraft implements IMod{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void populate(Map<String, Object> map, ItemStack stack) {
|
public void populate(final Map<String, Object> map, final ItemStack stack) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,7 @@ import li.cil.occ.mods.ManagedTileEntityEnvironment;
|
|||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import tmechworks.lib.blocks.IDrawbridgeLogicBase;
|
import tmechworks.lib.blocks.IDrawbridgeLogicBase;
|
||||||
|
|
||||||
|
|
||||||
public class DriverDrawBridge extends DriverTileEntity {
|
public class DriverDrawBridge extends DriverTileEntity {
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<?> getTileEntityClass() {
|
public Class<?> getTileEntityClass() {
|
||||||
return IDrawbridgeLogicBase.class;
|
return IDrawbridgeLogicBase.class;
|
||||||
@ -32,7 +29,5 @@ public class DriverDrawBridge extends DriverTileEntity {
|
|||||||
public Object[] hasExtended(final Context context, final Arguments args) {
|
public Object[] hasExtended(final Context context, final Arguments args) {
|
||||||
return new Object[]{tileEntity.hasExtended()};
|
return new Object[]{tileEntity.hasExtended()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class ModTMechworks implements IMod{
|
public final class ModTMechworks implements IMod {
|
||||||
@Override
|
@Override
|
||||||
public String getModId() {
|
public String getModId() {
|
||||||
return "TMechworks";
|
return "TMechworks";
|
||||||
@ -18,7 +18,6 @@ public class ModTMechworks implements IMod{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void populate(Map<String, Object> map, ItemStack stack) {
|
public void populate(final Map<String, Object> map, final ItemStack stack) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public class StackWrapper {
|
public class StackWrapper {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IPatternIterator {
|
public interface IPatternIterator {
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import net.minecraftforge.common.ForgeDirection;
|
|||||||
* This Tile Entity interface allows you to indicate that a block can emit power
|
* This Tile Entity interface allows you to indicate that a block can emit power
|
||||||
* from a specific side.
|
* from a specific side.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IPowerEmitter {
|
public interface IPowerEmitter {
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import net.minecraftforge.common.ForgeDirection;
|
|||||||
* This interface should be implemented by any Tile Entity that wishes to be
|
* This interface should be implemented by any Tile Entity that wishes to be
|
||||||
* able to receive power.
|
* able to receive power.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IPowerReceptor {
|
public interface IPowerReceptor {
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import net.minecraftforge.common.ForgeDirection;
|
|||||||
* @see IPowerReceptor
|
* @see IPowerReceptor
|
||||||
* @see IPowerEmitter
|
* @see IPowerEmitter
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public final class PowerHandler {
|
public final class PowerHandler {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
* Used to render a cart with a custom texture using Railcraft's cart renderer.
|
* Used to render a cart with a custom texture using Railcraft's cart renderer.
|
||||||
* You could always write your own renderer of course.
|
* You could always write your own renderer of course.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IAlternateCartTexture {
|
public interface IAlternateCartTexture {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import net.minecraft.util.Icon;
|
|||||||
/**
|
/**
|
||||||
* Used by the renderer to renders blocks in carts.
|
* Used by the renderer to renders blocks in carts.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ICartContentsTextureProvider{
|
public interface ICartContentsTextureProvider{
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ package mods.railcraft.api.carts;
|
|||||||
* It is roughly equivalent to the IItemTransfer interface
|
* It is roughly equivalent to the IItemTransfer interface
|
||||||
* and based on ElectricItem and IElectricItem.
|
* and based on ElectricItem and IElectricItem.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see IItemTransfer
|
* @see IItemTransfer
|
||||||
*/
|
*/
|
||||||
public interface IEnergyTransfer
|
public interface IEnergyTransfer
|
||||||
|
@ -7,7 +7,7 @@ import mods.railcraft.api.core.items.IStackFilter;
|
|||||||
* This interface allows items to be passed around with out needing
|
* This interface allows items to be passed around with out needing
|
||||||
* to know anything about the underlying implementation of the inventories.
|
* to know anything about the underlying implementation of the inventories.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IItemTransfer
|
public interface IItemTransfer
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraft.entity.item.EntityMinecart;
|
|||||||
* to change the default linkage behavior.
|
* to change the default linkage behavior.
|
||||||
* It is NOT required to be able to link a cart,
|
* It is NOT required to be able to link a cart,
|
||||||
* it merely gives you more control over the process.
|
* it merely gives you more control over the process.
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ILinkableCart
|
public interface ILinkableCart
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ import net.minecraft.entity.item.EntityMinecart;
|
|||||||
* Each cart can up to two links. They are called Link A and Link B.
|
* Each cart can up to two links. They are called Link A and Link B.
|
||||||
* Some carts will have only Link A, for example the Tunnel Bore.
|
* Some carts will have only Link A, for example the Tunnel Bore.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see CartTools, ILinkableCart
|
* @see CartTools, ILinkableCart
|
||||||
*/
|
*/
|
||||||
public interface ILinkageManager
|
public interface ILinkageManager
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
* This interface allows carts to transfer liquid between each other as well as
|
* This interface allows carts to transfer liquid between each other as well as
|
||||||
* adding a couple other functions related to liquids.
|
* adding a couple other functions related to liquids.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ILiquidTransfer {
|
public interface ILiquidTransfer {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
*
|
*
|
||||||
* This interface is implemented by CartBase.
|
* This interface is implemented by CartBase.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see CartBase
|
* @see CartBase
|
||||||
*/
|
*/
|
||||||
public interface IMinecart {
|
public interface IMinecart {
|
||||||
|
@ -10,7 +10,7 @@ package mods.railcraft.api.carts;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IPaintedCart {
|
public interface IPaintedCart {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ package mods.railcraft.api.carts;
|
|||||||
/**
|
/**
|
||||||
* This is used for the "NeedsRefuel" routing conditional.
|
* This is used for the "NeedsRefuel" routing conditional.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IRefuelableCart {
|
public interface IRefuelableCart {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IRoutableCart {
|
public interface IRoutableCart {
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
/**
|
/**
|
||||||
* This interface it used to define an item that can
|
* This interface it used to define an item that can
|
||||||
* be used as a bore head for the Tunnel Bore.
|
* be used as a bore head for the Tunnel Bore.
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IBoreHead
|
public interface IBoreHead
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ import net.minecraft.world.World;
|
|||||||
* Generally, the reason blocks are not minable by default is to prevent you
|
* Generally, the reason blocks are not minable by default is to prevent you
|
||||||
* from intentionally or accidentally boring through your base.
|
* from intentionally or accidentally boring through your base.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IMineable
|
public interface IMineable
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ package mods.railcraft.api.core;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IOwnable {
|
public interface IOwnable {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import net.minecraftforge.common.ForgeDirection;
|
|||||||
*
|
*
|
||||||
* The result takes priority over any other rules.
|
* The result takes priority over any other rules.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IPostConnection {
|
public interface IPostConnection {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.client.renderer.texture.IconRegister;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITextureLoader {
|
public interface ITextureLoader {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||||||
* This immutable class represents a point in the Minecraft world, while taking
|
* This immutable class represents a point in the Minecraft world, while taking
|
||||||
* into account the possibility of coordinates in different dimensions.
|
* into account the possibility of coordinates in different dimensions.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class WorldCoordinate {
|
public class WorldCoordinate {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
|||||||
* This interface should be implemented by any cart item,
|
* This interface should be implemented by any cart item,
|
||||||
* but it is generally optional.
|
* but it is generally optional.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IMinecartItem
|
public interface IMinecartItem
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
* This interface is used with several of the functions in IItemTransfer
|
* This interface is used with several of the functions in IItemTransfer
|
||||||
* to provide a convenient means of dealing with entire classes of items without
|
* to provide a convenient means of dealing with entire classes of items without
|
||||||
* having to specify each item individually.
|
* having to specify each item individually.
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IStackFilter
|
public interface IStackFilter
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IToolCrowbar {
|
public interface IToolCrowbar {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import net.minecraft.world.World;
|
|||||||
*
|
*
|
||||||
* If you defined your rails with a TrackSpec, you don't need to worry about this.
|
* If you defined your rails with a TrackSpec, you don't need to worry about this.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackItem
|
public interface ITrackItem
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ import java.util.TreeSet;
|
|||||||
* This is a collection of ItemStack tags than can be used with
|
* This is a collection of ItemStack tags than can be used with
|
||||||
* GameRegistry.findItemStack().
|
* GameRegistry.findItemStack().
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see GameRegistry#findItemStack(java.lang.String, java.lang.String, int)
|
* @see GameRegistry#findItemStack(java.lang.String, java.lang.String, int)
|
||||||
*/
|
*/
|
||||||
public class TagList {
|
public class TagList {
|
||||||
|
@ -5,7 +5,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IBlastFurnaceCraftingManager {
|
public interface IBlastFurnaceCraftingManager {
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IBlastFurnaceRecipe
|
public interface IBlastFurnaceRecipe
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ICokeOvenCraftingManager {
|
public interface ICokeOvenCraftingManager {
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ICokeOvenRecipe
|
public interface ICokeOvenRecipe
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IRockCrusherCraftingManager {
|
public interface IRockCrusherCraftingManager {
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IRockCrusherRecipe {
|
public interface IRockCrusherRecipe {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IRollingMachineCraftingManager
|
public interface IRollingMachineCraftingManager
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ package mods.railcraft.api.crafting;
|
|||||||
* These variables are defined during the pre-init phase.
|
* These variables are defined during the pre-init phase.
|
||||||
* Do not attempt to access them during pre-init.
|
* Do not attempt to access them during pre-init.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class RailcraftCraftingManager
|
public abstract class RailcraftCraftingManager
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ import net.minecraftforge.event.Event;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class CartLockdownEvent extends Event {
|
public abstract class CartLockdownEvent extends Event {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraftforge.fluids.Fluid;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class FuelManager {
|
public class FuelManager {
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package mods.railcraft.api.helpers;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public class Helpers {
|
public class Helpers {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface StructureHelper {
|
public interface StructureHelper {
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import mods.railcraft.api.core.WorldCoordinate;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractPair {
|
public abstract class AbstractPair {
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import mods.railcraft.api.core.WorldCoordinate;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class DualSignalReceiver extends SignalReceiver {
|
public class DualSignalReceiver extends SignalReceiver {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ package mods.railcraft.api.signals;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IControllerTile {
|
public interface IControllerTile {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import net.minecraft.tileentity.TileEntity;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IPairEffectRenderer {
|
public interface IPairEffectRenderer {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import net.minecraft.world.World;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface IReceiverTile {
|
public interface IReceiverTile {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ package mods.railcraft.api.signals;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ISignalPacketBuilder {
|
public interface ISignalPacketBuilder {
|
||||||
public void sendPairPacketUpdate(AbstractPair pairing);
|
public void sendPairPacketUpdate(AbstractPair pairing);
|
||||||
|
@ -5,7 +5,7 @@ import java.util.Locale;
|
|||||||
/**
|
/**
|
||||||
* Represents a Signal state.
|
* Represents a Signal state.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public enum SignalAspect {
|
public enum SignalAspect {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import mods.railcraft.api.core.WorldCoordinate;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class SignalController extends AbstractPair {
|
public abstract class SignalController extends AbstractPair {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import mods.railcraft.api.core.WorldCoordinate;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class SignalReceiver extends AbstractPair {
|
public abstract class SignalReceiver extends AbstractPair {
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package mods.railcraft.api.signals;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class SignalTools {
|
public abstract class SignalTools {
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import mods.railcraft.api.core.WorldCoordinate;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class SimpleSignalController extends SignalController {
|
public class SimpleSignalController extends SignalController {
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import net.minecraft.tileentity.TileEntity;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class SimpleSignalReceiver extends SignalReceiver {
|
public class SimpleSignalReceiver extends SignalReceiver {
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ package mods.railcraft.api.tracks;
|
|||||||
* change the ticket on the fly. Be warned, security is the responsibility of
|
* change the ticket on the fly. Be warned, security is the responsibility of
|
||||||
* the addon.
|
* the addon.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public interface IRoutingTrack {
|
public interface IRoutingTrack {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package mods.railcraft.api.tracks;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackBlocksMovement {
|
public interface ITrackBlocksMovement {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraft.world.World;
|
|||||||
*
|
*
|
||||||
* Used by tracks such as the Suspended Track.
|
* Used by tracks such as the Suspended Track.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackCustomPlaced extends ITrackInstance
|
public interface ITrackCustomPlaced extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ import net.minecraft.util.Vec3;
|
|||||||
*
|
*
|
||||||
* Not very useful since there is no system in place to insert custom render code.
|
* Not very useful since there is no system in place to insert custom render code.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackCustomShape extends ITrackInstance
|
public interface ITrackCustomShape extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ package mods.railcraft.api.tracks;
|
|||||||
*
|
*
|
||||||
* A track cannot implement both ITrackPowered and ITrackEmitter.
|
* A track cannot implement both ITrackPowered and ITrackEmitter.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackEmitter extends ITrackInstance
|
public interface ITrackEmitter extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ import net.minecraft.util.Icon;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackItemIconProvider {
|
public interface ITrackItemIconProvider {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import net.minecraft.entity.item.EntityMinecart;
|
|||||||
* all cart movement should implement this interface.
|
* all cart movement should implement this interface.
|
||||||
* (Used in collision handling)
|
* (Used in collision handling)
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackLockdown extends ITrackInstance
|
public interface ITrackLockdown extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ package mods.railcraft.api.tracks;
|
|||||||
* And so long as you inherit from TrackInstanceBase, all the code for updating
|
* And so long as you inherit from TrackInstanceBase, all the code for updating
|
||||||
* the power state is already in place (including propagation).
|
* the power state is already in place (including propagation).
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackPowered extends ITrackInstance
|
public interface ITrackPowered extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ package mods.railcraft.api.tracks;
|
|||||||
* And so long as you inherit from TrackInstanceBase it will automatically be
|
* And so long as you inherit from TrackInstanceBase it will automatically be
|
||||||
* reversable via the Crowbar.
|
* reversable via the Crowbar.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackReversable extends ITrackInstance
|
public interface ITrackReversable extends ITrackInstance
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ package mods.railcraft.api.tracks;
|
|||||||
* Don't use this, its an interface that allows other API code
|
* Don't use this, its an interface that allows other API code
|
||||||
* access to internal functions of the code.
|
* access to internal functions of the code.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public interface ITrackTile
|
public interface ITrackTile
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ import net.minecraft.block.BlockRailBase;
|
|||||||
/**
|
/**
|
||||||
* A number of utility functions related to rails.
|
* A number of utility functions related to rails.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public abstract class RailTools {
|
public abstract class RailTools {
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import net.minecraft.entity.EntityLivingBase;
|
|||||||
* functions and standard behavior for Tracks that should greatly simplify
|
* functions and standard behavior for Tracks that should greatly simplify
|
||||||
* implementing new Tracks when using this API.
|
* implementing new Tracks when using this API.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see ITrackInstance
|
* @see ITrackInstance
|
||||||
* @see TrackRegistry
|
* @see TrackRegistry
|
||||||
* @see TrackSpec
|
* @see TrackSpec
|
||||||
|
@ -20,7 +20,7 @@ import mods.railcraft.api.core.ITextureLoader;
|
|||||||
* The TrackSpec contains basic constant information about the Track, while the
|
* The TrackSpec contains basic constant information about the Track, while the
|
||||||
* TrackInstace controls how an individual Track block interact with the world.
|
* TrackInstace controls how an individual Track block interact with the world.
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
* @see TrackSpec
|
* @see TrackSpec
|
||||||
* @see ITrackInstance
|
* @see ITrackInstance
|
||||||
* @see TrackInstanceBase
|
* @see TrackInstanceBase
|
||||||
|
@ -22,7 +22,7 @@ import net.minecraft.util.Icon;
|
|||||||
* @see TrackRegistry
|
* @see TrackRegistry
|
||||||
* @see ITrackInstance
|
* @see ITrackInstance
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.ModTMechworks.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public final class TrackSpec {
|
public final class TrackSpec {
|
||||||
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
package tmechworks.lib.blocks;
|
package tmechworks.lib.blocks;
|
||||||
|
|
||||||
public interface IDrawbridgeLogicBase
|
public interface IDrawbridgeLogicBase {
|
||||||
{
|
public boolean hasExtended();
|
||||||
|
|
||||||
public boolean hasExtended ();
|
public byte getPlacementDirection();
|
||||||
|
|
||||||
public byte getPlacementDirection ();
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user