mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Add WanderTradesEvent#Pool Constructor with List<ItemListing> and int directly (#10566)
This commit is contained in:
1 parent
ddb1e52e99
commit
5e75de5eb7
1 file changed
+6
-2
@@ -43,8 +43,12 @@ public class WandererTradesEvent extends MutableEvent implements InheritableEven
|
||||
private final List<ItemListing> entries;
|
||||
|
||||
public Pool(Pair<ItemListing[], Integer> data) {
|
||||
this.rolls = data.getRight();
|
||||
this.entries = new ArrayList<>(Arrays.asList(data.getLeft()));
|
||||
this(Arrays.asList(data.getLeft()), data.getRight());
|
||||
}
|
||||
|
||||
public Pool(List<ItemListing> entries, int rolls) {
|
||||
this.rolls = rolls;
|
||||
this.entries = new ArrayList<>(entries);
|
||||
}
|
||||
|
||||
public int getRolls() {
|
||||
|
||||
Reference in new issue
Block a user