return this.stream().filter(trade -> trade.sellsItem(itemStack)).collect(Collectors.toCollection(() -> new TradeList(villagerEntry)));
}
public TradeList getSubListBuy(ItemStack itemStack) {
return this.stream().filter(trade -> trade.buysItem(itemStack)).collect(Collectors.toCollection(() -> new TradeList(villagerEntry)));
}
<BUG>public TradeList getFocusedList(IFocus<ItemStack> focus) {
switch (focus.getMode()) {</BUG>
case INPUT:
return getSubListBuy(focus.getValue());
case OUTPUT:

return this.stream().filter(trade -> trade.sellsItem(itemStack)).collect(Collectors.toCollection(() -> new TradeList(villagerEntry)));
}
public TradeList getSubListBuy(ItemStack itemStack) {
return this.stream().filter(trade -> trade.buysItem(itemStack)).collect(Collectors.toCollection(() -> new TradeList(villagerEntry)));
}
public TradeList getFocusedList(IFocus<ItemStack> focus) {
if (focus == null) {
return this;
} else {
switch (focus.getMode()) {
case INPUT:
return getSubListBuy(focus.getValue());
case OUTPUT:
