Skip to content

Commit

Permalink
remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 22, 2024
1 parent 43cd159 commit 527c211
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions src/main/java/gregtech/common/covers/CoverFluidFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,6 @@ public boolean canPipePassThrough() {
return EnumActionResult.SUCCESS;
}

public ModularUI createUI(EntityPlayer player) {
WidgetGroup fluidFilterGroup = new WidgetGroup();
fluidFilterGroup.addWidget(new LabelWidget(10, 5, "cover.fluid_filter.title"));
fluidFilterGroup.addWidget(new CycleButtonWidget(10, 20, 110, 20,
GTUtility.mapToString(FluidFilterMode.values(), (it) -> it.localeName), () -> this.filterMode.ordinal(),
(newMode) -> this.setFilterMode(FluidFilterMode.values()[newMode])));
this.fluidFilterContainer.initUI(45, fluidFilterGroup::addWidget);
this.fluidFilterContainer.blacklistUI(45, fluidFilterGroup::addWidget, () -> true);
return ModularUI.builder(GuiTextures.BACKGROUND, 176, 105 + 82)
.widget(fluidFilterGroup)
.bindPlayerInventory(player.inventory, GuiTextures.SLOT, 7, 105)
.build(this, player);
}

@Override
public boolean usesMui2() {
return true;
Expand Down
15 changes: 0 additions & 15 deletions src/main/java/gregtech/common/covers/CoverItemFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,6 @@ public boolean testItemStack(ItemStack stack) {
return itemFilter.test(stack);
}

@Override
public ModularUI createUI(EntityPlayer player) {
gregtech.api.gui.widgets.WidgetGroup filterGroup = new gregtech.api.gui.widgets.WidgetGroup();
filterGroup.addWidget(new gregtech.api.gui.widgets.LabelWidget(10, 5, titleLocale));
filterGroup.addWidget(new gregtech.api.gui.widgets.CycleButtonWidget(10, 20, 110, 20,
GTUtility.mapToString(ItemFilterMode.values(), it -> it.localeName),
() -> filterMode.ordinal(), (newMode) -> setFilterMode(ItemFilterMode.values()[newMode])));
this.itemFilter.initFilterUI(45, filterGroup::addWidget);
this.itemFilter.blacklistUI(45, filterGroup::addWidget, () -> true);
return ModularUI.builder(GuiTextures.BACKGROUND, 176, 105 + 82)
.widget(filterGroup)
.bindPlayerInventory(player.inventory, GuiTextures.SLOT, 7, 105)
.build(this, player);
}

@Override
public boolean usesMui2() {
return true;
Expand Down

0 comments on commit 527c211

Please sign in to comment.