summaryrefslogtreecommitdiff
path: root/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-08-10 18:50:56 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-08-10 18:50:56 +0300
commit877312184c472d9845e5ef1008bc538f4634059f (patch)
tree4e098cc94296cc11f3b87e8ef64c3c568b6aeb51 /main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
parent939d2ea16679ce64d98b98c716b85f851aa576e2 (diff)
fix missing source folder
Diffstat (limited to 'main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java')
-rw-r--r--main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java123
1 files changed, 123 insertions, 0 deletions
diff --git a/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
new file mode 100644
index 0000000..5842cbd
--- /dev/null
+++ b/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
@@ -0,0 +1,123 @@
+package gregtech.api.interfaces.tileentity;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import gregtech.api.interfaces.IDescribable;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.world.World;
+import net.minecraftforge.fluids.IFluidHandler;
+
+/**
+ * A simple compound Interface for all my TileEntities.
+ *
+ * Also delivers most of the Informations about my TileEntities.
+ *
+ * It can cause Problems to include this Interface!
+ */
+public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTileEntity, ICoverable, IFluidHandler, ITurnable, IGregTechDeviceInformation, IUpgradableMachine, IDigitalChest, IDescribable, IMachineBlockUpdateable {
+ /**
+ * gets the Error displayed on the GUI
+ */
+ public int getErrorDisplayID();
+
+ /**
+ * sets the Error displayed on the GUI
+ */
+ public void setErrorDisplayID(int aErrorID);
+
+ /**
+ * @return the MetaID of the Block or the MetaTileEntity ID.
+ */
+ public int getMetaTileID();
+
+ /**
+ * Internal Usage only!
+ */
+ public int setMetaTileID(short aID);
+
+ /**
+ * @return the MetaTileEntity which is belonging to this, or null if it doesnt has one.
+ */
+ public IMetaTileEntity getMetaTileEntity();
+
+ /**
+ * Sets the MetaTileEntity.
+ * Even though this uses the Universal Interface, certain BaseMetaTileEntities only accept one kind of MetaTileEntity
+ * so only use this if you are sure its the correct one or you will get a Class cast Error.
+ * @param aMetaTileEntity
+ */
+ public void setMetaTileEntity(IMetaTileEntity aMetaTileEntity);
+
+ /**
+ * Causes a general Texture update.
+ *
+ * Only used Client Side to mark Blocks dirty.
+ */
+ public void issueTextureUpdate();
+
+ /**
+ * Causes the Machine to send its initial Data, like Covers and its ID.
+ */
+ public void issueClientUpdate();
+
+ /**
+ * causes Explosion. Strength in Overload-EU
+ */
+ public void doExplosion(long aExplosionEU);
+
+ /**
+ * Sets the Block on Fire in all 6 Directions
+ */
+ public void setOnFire();
+
+ /**
+ * Sets the Block to Fire
+ */
+ public void setToFire();
+
+ /**
+ * Sets the Owner of the Machine. Returns the set Name.
+ */
+ public String setOwnerName(String aName);
+
+ /**
+ * gets the Name of the Machines Owner or "Player" if not set.
+ */
+ public String getOwnerName();
+
+ /**
+ * Sets initial Values from NBT
+ * @param tNBT is the NBTTag of readFromNBT
+ * @param aID is the MetaTileEntityID
+ */
+ public void setInitialValuesAsNBT(NBTTagCompound aNBT, short aID);
+
+ /**
+ * Called when leftclicking the TileEntity
+ */
+ public void onLeftclick(EntityPlayer aPlayer);
+
+ /**
+ * Called when rightclicking the TileEntity
+ */
+ public boolean onRightclick(EntityPlayer aPlayer, byte aSide, float par1, float par2, float par3);
+
+ public float getBlastResistance(byte aSide);
+
+ public ArrayList<ItemStack> getDrops();
+
+ /**
+ * 255 = 100%
+ */
+ public int getLightOpacity();
+
+ public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, List<AxisAlignedBB> outputAABB, Entity collider);
+ public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ);
+ public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider);
+} \ No newline at end of file