| package buildcraft.api.transport; |
| |
| import buildcraft.api.core.Orientations; |
| import buildcraft.api.core.Position; |
| import buildcraft.api.core.SafeTimeTracker; |
| import net.minecraft.src.EntityItem; |
| import net.minecraft.src.ItemStack; |
| import net.minecraft.src.NBTTagCompound; |
| import net.minecraft.src.TileEntity; |
| import net.minecraft.src.World; |
| |
| public interface IPipedItem { |
| |
| public abstract void remove(); |
| |
| /* GETTING & SETTING */ |
| public abstract void setWorld(World world); |
| |
| public abstract Position getPosition(); |
| |
| public abstract void setPosition(double x, double y, double z); |
| |
| /** |
| * @return the speed |
| */ |
| public abstract float getSpeed(); |
| |
| /** |
| * @param speed the speed to set |
| */ |
| public abstract void setSpeed(float speed); |
| |
| /** |
| * @return the item |
| */ |
| public abstract ItemStack getItemStack(); |
| |
| /** |
| * @param item the item to set |
| */ |
| public abstract void setItemStack(ItemStack item); |
| |
| /** |
| * @return the container |
| */ |
| public abstract TileEntity getContainer(); |
| |
| /** |
| * @param container the container to set |
| */ |
| public abstract void setContainer(TileEntity container); |
| |
| /** |
| * @return the synchroTracker |
| */ |
| @Deprecated |
| public abstract SafeTimeTracker getSynchroTracker(); |
| |
| /** |
| * @param synchroTracker the synchroTracker to set |
| */ |
| @Deprecated |
| public abstract void setSynchroTracker(SafeTimeTracker synchroTracker); |
| |
| /** |
| * @return the deterministicRandomization |
| */ |
| @Deprecated |
| public abstract int getDeterministicRandomization(); |
| |
| /** |
| * @param deterministicRandomization the deterministicRandomization to set |
| */ |
| @Deprecated |
| public abstract void setDeterministicRandomization(int deterministicRandomization); |
| |
| /** |
| * @return the entityId |
| */ |
| public abstract int getEntityId(); |
| |
| /** |
| * @param entityId the entityId to set |
| */ |
| public abstract void setEntityId(int entityId); |
| |
| /* SAVING & LOADING */ |
| public abstract void readFromNBT(NBTTagCompound nbttagcompound); |
| |
| public abstract void writeToNBT(NBTTagCompound nbttagcompound); |
| |
| public abstract EntityItem toEntityItem(Orientations dir); |
| |
| public abstract float getEntityBrightness(float f); |
| |
| public abstract boolean isCorrupted(); |
| |
| public abstract void addContribution(String key, IPassiveItemContribution contribution); |
| |
| public abstract IPassiveItemContribution getContribution(String key); |
| |
| public abstract boolean hasContributions(); |
| |
| } |