Search in sources :

Example 1 with FilterMode

use of buildcraft.transport.pipe.behaviour.PipeBehaviourWoodDiamond.FilterMode in project BuildCraft by BuildCraft.

the class GuiDiamondWoodPipe method handleButtonClick.

@Override
public void handleButtonClick(IButtonClickEventTrigger sender, int buttonKey) {
    if (!(sender instanceof GuiImageButton)) {
        return;
    }
    int id = Integer.parseInt(((GuiImageButton) sender).id);
    FilterMode newFilterMode = FilterMode.get(id);
    this.pipe.filterMode = newFilterMode;
    container.sendNewFilterMode(newFilterMode);
}
Also used : GuiImageButton(buildcraft.lib.gui.button.GuiImageButton) FilterMode(buildcraft.transport.pipe.behaviour.PipeBehaviourWoodDiamond.FilterMode)

Aggregations

GuiImageButton (buildcraft.lib.gui.button.GuiImageButton)1 FilterMode (buildcraft.transport.pipe.behaviour.PipeBehaviourWoodDiamond.FilterMode)1