T - The instance type.M - The matching condition parameter.public class TerminalStorageTabIngredientComponentCommon<T,M> extends java.lang.Object implements ITerminalStorageTabCommon, org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidator
| Modifier and Type | Field and Description |
|---|---|
protected org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> |
ingredientComponent |
| Constructor and Description |
|---|
TerminalStorageTabIngredientComponentCommon(ContainerTerminalStorage containerTerminalStorage,
net.minecraft.util.ResourceLocation name,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString error) |
void |
clearGlobalErrors() |
java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> |
getGlobalErrors() |
java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> |
getLocalErrors(int slot) |
net.minecraft.util.ResourceLocation |
getName() |
int |
getVariableSlotNumberEnd() |
int |
getVariableSlotNumberStart() |
boolean |
hasErrors() |
java.util.List<net.minecraft.inventory.Slot> |
loadSlots(net.minecraft.inventory.Container container,
int startIndex,
net.minecraft.entity.player.EntityPlayer player,
PartTypeTerminalStorage.State partState) |
void |
onUpdate(net.minecraft.inventory.Container container,
net.minecraft.entity.player.EntityPlayer player,
PartTypeTerminalStorage.State partState) |
void |
setLocalErrors(int slot,
java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> errors) |
public TerminalStorageTabIngredientComponentCommon(ContainerTerminalStorage containerTerminalStorage, net.minecraft.util.ResourceLocation name, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent)
public net.minecraft.util.ResourceLocation getName()
getName in interface ITerminalStorageTabCommonITerminalStorageTab.getName().public java.util.List<net.minecraft.inventory.Slot> loadSlots(net.minecraft.inventory.Container container,
int startIndex,
net.minecraft.entity.player.EntityPlayer player,
PartTypeTerminalStorage.State partState)
loadSlots in interface ITerminalStorageTabCommonpublic int getVariableSlotNumberStart()
public int getVariableSlotNumberEnd()
public void onUpdate(net.minecraft.inventory.Container container,
net.minecraft.entity.player.EntityPlayer player,
PartTypeTerminalStorage.State partState)
onUpdate in interface ITerminalStorageTabCommonpublic void addError(org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString error)
addError in interface org.cyclops.integrateddynamics.api.item.IVariableFacade.IValidatorpublic java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> getGlobalErrors()
public void clearGlobalErrors()
public void setLocalErrors(int slot,
java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> errors)
public java.util.List<org.cyclops.cyclopscore.helper.L10NHelpers.UnlocalizedString> getLocalErrors(int slot)
public boolean hasErrors()