Mekanism-tilera-Edition/common/mekanism/common/IElectricChest.java
Victor Robertson e5a6eadc45 Fix indentation and remove trailing whitespace
This patch provides common/mekanism/*.java with standardized
indentation (tabs) and also removes trailing whitespace.
2014-03-07 19:20:35 -06:00

95 lines
2.6 KiB
Java

package mekanism.common;
import net.minecraft.item.ItemStack;
/**
* Internal interface used for managing Electric Chests.
* @author aidancbrady
*
*/
public interface IElectricChest
{
/**
* Sets the 'authenticated' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param auth - new value
*/
public void setAuthenticated(ItemStack itemStack, boolean auth);
/**
* Retrieves the 'authenticated' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return authenticated value
*/
public boolean getAuthenticated(ItemStack itemStack);
/**
* Sets the 'password' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param pass - new value
*/
public void setPassword(ItemStack itemStack, String pass);
/**
* Retrieves the 'password' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return authenticated value
*/
public String getPassword(ItemStack itemStack);
/**
* Sets the 'locked' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param locked - new value
*/
public void setLocked(ItemStack itemStack, boolean locked);
/**
* Retrieves the 'locked' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return authenticated value
*/
public boolean getLocked(ItemStack itemStack);
/**
* Sets the 'open' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param open - new value
*/
public void setOpen(ItemStack itemStack, boolean open);
/**
* Retrieves the 'open' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return open value
*/
public boolean getOpen(ItemStack itemStack);
/**
* Sets the 'lidAngle' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param lidAngle - new value
*/
public void setLidAngle(ItemStack itemStack, float lidAngle);
/**
* Retrieves the 'lidAngle' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return lidAngle value
*/
public float getLidAngle(ItemStack itemStack);
/**
* Sets the 'prevLidAngle' value of this electric chest to a new value.
* @param itemStack - electric chest ItemStack
* @param prevLidAngle - new value
*/
public void setPrevLidAngle(ItemStack itemStack, float prevLidAngle);
/**
* Retrieves the 'prevLidAngle' value of this electric chest.
* @param itemStack - electric chest ItemStack
* @return prevLidAngle value
*/
public float getPrevLidAngle(ItemStack itemStack);
}