Skip to content

Commit

Permalink
remove builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Apr 6, 2024
1 parent e1cd190 commit daf03db
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/main/java/gregtech/api/DualHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ public void removeNotifiableMetaTileEntity(MetaTileEntity metaTileEntity) {
this.notifiables.remove(metaTileEntity);
}

public static Builder builder() {
return new Builder();
}

@Override
public @NotNull List<MultiFluidTankEntry> getFluidTanks() {
if (this.fluidDelegate == null) return Collections.emptyList();
Expand All @@ -147,30 +143,4 @@ public int getTanks() {
public boolean allowSameFluidFill() {
return this.fluidDelegate != null && this.fluidDelegate.allowSameFluidFill();
}

public static class Builder {

IItemHandlerModifiable itemHandler;
IMultipleTankHandler fluidHandler;
IDirtyNotifiable notifiable;

public Builder itemHandler(IItemHandlerModifiable itemHandler) {
this.itemHandler = itemHandler;
return this;
}

public Builder fluidTank(IMultipleTankHandler fluidTank) {
this.fluidHandler = fluidTank;
return this;
}

public Builder notifiable(IDirtyNotifiable notifiable) {
this.notifiable = notifiable;
return this;
}

public DualHandler build(boolean isExport) {
return new DualHandler(this.itemHandler, this.fluidHandler, this.notifiable, isExport);
}
}
}

0 comments on commit daf03db

Please sign in to comment.