Class TerminalStorageTabIngredientComponentServer<T,M>
java.lang.Object
org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentServer<T,M>
- Type Parameters:
T- The instance type.M- The matching condition parameter.
- All Implemented Interfaces:
org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.IIndexChangeObserver<T,,M> ITerminalStorageTabServer
- Direct Known Subclasses:
TerminalStorageTabIngredientComponentItemStackCraftingServer
public class TerminalStorageTabIngredientComponentServer<T,M>
extends Object
implements ITerminalStorageTabServer, org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.IIndexChangeObserver<T,M>
A server-side storage terminal ingredient tab.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalStorageTabIngredientComponentServer(net.minecraft.resources.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, net.minecraft.server.level.ServerPlayer player) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeInit()Deinitialize the tab when the container is closed.getFilteredDiffManager(int channel) net.minecraft.resources.ResourceLocationgetName()org.cyclops.integrateddynamics.api.network.INetworkgetUnfilteredIngredientsView(int channel) voidhandleStorageSlotClick(net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.server.level.ServerPlayer player, TerminalClickType clickType, int channel, T hoveringStorageInstance, int hoveredContainerSlot, long moveQuantityPlayerSlot, T activeStorageInstance, boolean transferFullSelection) voidinit()Initializes the tab when the container was opened.protected voidinitChannel(int channel) voidonChange(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T, M> event) protected voidreApplyFilter(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T, M> event) protected voidsendToClient(org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T, M> event, long maxQuantity) voidCalled on each tick this tab is active.voidupdateFilter(List<org.cyclops.integrateddynamics.api.evaluate.variable.IVariable<org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeOperator.ValueOperator>> variables, TerminalStorageTabIngredientComponentCommon<?, ?> errorListener)
-
Constructor Details
-
TerminalStorageTabIngredientComponentServer
public TerminalStorageTabIngredientComponentServer(net.minecraft.resources.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, net.minecraft.server.level.ServerPlayer player)
-
-
Method Details
-
getName
public net.minecraft.resources.ResourceLocation getName()- Specified by:
getNamein interfaceITerminalStorageTabServer- Returns:
- The unique tab name, as inherited from
ITerminalStorageTab.getName().
-
init
public void init()Description copied from interface:ITerminalStorageTabServerInitializes the tab when the container was opened.- Specified by:
initin interfaceITerminalStorageTabServer
-
initChannel
protected void initChannel(int channel) -
deInit
public void deInit()Description copied from interface:ITerminalStorageTabServerDeinitialize the tab when the container is closed.- Specified by:
deInitin interfaceITerminalStorageTabServer
-
updateActive
public void updateActive()Description copied from interface:ITerminalStorageTabServerCalled on each tick this tab is active.- Specified by:
updateActivein interfaceITerminalStorageTabServer
-
getUnfilteredIngredientsView
-
getFilteredDiffManager
-
updateFilter
public void updateFilter(List<org.cyclops.integrateddynamics.api.evaluate.variable.IVariable<org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeOperator.ValueOperator>> variables, TerminalStorageTabIngredientComponentCommon<?, ?> errorListener) -
getIngredientsFilter
-
onChange
-
reApplyFilter
-
sendToClient
-
getNetwork
public org.cyclops.integrateddynamics.api.network.INetwork getNetwork() -
getIngredientNetwork
-
handleStorageSlotClick
@Nullable public void handleStorageSlotClick(net.minecraft.world.inventory.AbstractContainerMenu container, net.minecraft.server.level.ServerPlayer player, TerminalClickType clickType, int channel, T hoveringStorageInstance, int hoveredContainerSlot, long moveQuantityPlayerSlot, T activeStorageInstance, boolean transferFullSelection)
-