T - The instance type.M - The matching condition parameter.public class TerminalStorageTabIngredientComponentServer<T,M> extends java.lang.Object implements ITerminalStorageTabServer, org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.IIndexChangeObserver<T,M>
| Constructor and Description |
|---|
TerminalStorageTabIngredientComponentServer(net.minecraft.util.ResourceLocation name,
org.cyclops.integrateddynamics.api.network.INetwork network,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent,
org.cyclops.integrateddynamics.api.network.IPositionedAddonsNetworkIngredients<T,M> ingredientNetwork,
org.cyclops.integrateddynamics.api.part.PartPos pos,
net.minecraft.entity.player.EntityPlayerMP player) |
| Modifier and Type | Method and Description |
|---|---|
void |
deInit()
Deinitialize the tab when the container is closed.
|
protected org.cyclops.cyclopscore.ingredient.collection.diff.IngredientCollectionDiffManager<T,M> |
getFilteredDiffManager(int channel) |
org.cyclops.integrateddynamics.api.network.IPositionedAddonsNetworkIngredients<T,M> |
getIngredientNetwork() |
protected java.util.function.Predicate<T> |
getIngredientsFilter() |
net.minecraft.util.ResourceLocation |
getName() |
org.cyclops.integrateddynamics.api.network.INetwork |
getNetwork() |
protected org.cyclops.cyclopscore.ingredient.collection.IIngredientCollapsedCollectionMutable<T,M> |
getUnfilteredIngredientsView(int channel) |
void |
handleStorageSlotClick(net.minecraft.inventory.Container container,
net.minecraft.entity.player.EntityPlayerMP player,
TerminalClickType clickType,
int channel,
T hoveringStorageInstance,
int hoveredContainerSlot,
long moveQuantityPlayerSlot,
T activeStorageInstance) |
void |
init()
Initializes the tab when the container was opened.
|
protected void |
initChannel(int channel) |
void |
onChange(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T,M> event) |
protected void |
reApplyFilter() |
protected void |
sendToClient(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T,M> event) |
void |
updateActive()
Called on each tick this tab is active.
|
void |
updateFilter(java.util.List<org.cyclops.integrateddynamics.api.evaluate.variable.IVariable<org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeOperator.ValueOperator>> variables,
TerminalStorageTabIngredientComponentCommon<?,?> errorListener) |
public TerminalStorageTabIngredientComponentServer(net.minecraft.util.ResourceLocation name,
org.cyclops.integrateddynamics.api.network.INetwork network,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent,
org.cyclops.integrateddynamics.api.network.IPositionedAddonsNetworkIngredients<T,M> ingredientNetwork,
org.cyclops.integrateddynamics.api.part.PartPos pos,
net.minecraft.entity.player.EntityPlayerMP player)
public net.minecraft.util.ResourceLocation getName()
getName in interface ITerminalStorageTabServerITerminalStorageTab.getName().public void init()
ITerminalStorageTabServerinit in interface ITerminalStorageTabServerprotected void initChannel(int channel)
public void deInit()
ITerminalStorageTabServerdeInit in interface ITerminalStorageTabServerpublic void updateActive()
ITerminalStorageTabServerupdateActive in interface ITerminalStorageTabServerprotected org.cyclops.cyclopscore.ingredient.collection.IIngredientCollapsedCollectionMutable<T,M> getUnfilteredIngredientsView(int channel)
protected org.cyclops.cyclopscore.ingredient.collection.diff.IngredientCollectionDiffManager<T,M> getFilteredDiffManager(int channel)
public void updateFilter(java.util.List<org.cyclops.integrateddynamics.api.evaluate.variable.IVariable<org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeOperator.ValueOperator>> variables,
TerminalStorageTabIngredientComponentCommon<?,?> errorListener)
protected java.util.function.Predicate<T> getIngredientsFilter()
public void onChange(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T,M> event)
protected void reApplyFilter()
protected void sendToClient(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T,M> event)
public org.cyclops.integrateddynamics.api.network.INetwork getNetwork()
public org.cyclops.integrateddynamics.api.network.IPositionedAddonsNetworkIngredients<T,M> getIngredientNetwork()
@Nullable
public void handleStorageSlotClick(net.minecraft.inventory.Container container,
net.minecraft.entity.player.EntityPlayerMP player,
TerminalClickType clickType,
int channel,
T hoveringStorageInstance,
int hoveredContainerSlot,
long moveQuantityPlayerSlot,
T activeStorageInstance)