2020-04-16 23:40:35 +02:00
|
|
|
package de.ellpeck.prettypipes.pipe.modules.insertion;
|
2020-04-16 21:19:40 +02:00
|
|
|
|
2020-05-07 15:48:46 +02:00
|
|
|
import de.ellpeck.prettypipes.pipe.containers.AbstractPipeGui;
|
2021-12-02 16:55:04 +01:00
|
|
|
import net.minecraft.network.chat.Component;
|
|
|
|
import net.minecraft.util.Mth;
|
|
|
|
import net.minecraft.world.entity.player.Inventory;
|
2020-04-16 21:19:40 +02:00
|
|
|
|
|
|
|
public class FilterModuleGui extends AbstractPipeGui<FilterModuleContainer> {
|
2021-12-02 16:55:04 +01:00
|
|
|
|
|
|
|
public FilterModuleGui(FilterModuleContainer screenContainer, Inventory inv, Component titleIn) {
|
2020-04-16 21:19:40 +02:00
|
|
|
super(screenContainer, inv, titleIn);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void init() {
|
|
|
|
super.init();
|
2022-06-30 16:00:33 +02:00
|
|
|
for (var widget : this.menu.filter.getButtons(this, this.leftPos + 7, this.topPos + 17 + 32 + 18 * Mth.ceil(this.menu.filter.getSlots() / 9F) + 2, false))
|
2021-12-02 16:55:04 +01:00
|
|
|
this.addRenderableWidget(widget);
|
2020-04-16 21:19:40 +02:00
|
|
|
}
|
|
|
|
}
|