mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
Use Collections.addAll
This commit is contained in:
1 parent
57930991ec
commit
c6783e573c
12 files changed
+30
-57
No files matched your search
@@ -11,6 +11,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class WoodManager {
|
||||
@@ -92,20 +93,14 @@ public class WoodManager {
|
||||
|
||||
public static List<IPlankType> getAllPlankTypes() {
|
||||
final List<IPlankType> list = new ArrayList<>();
|
||||
for (final IPlankType type : PlankType.ExtraTreePlanks.values()) {
|
||||
list.add(type);
|
||||
}
|
||||
for (final IPlankType type : PlankType.ForestryPlanks.values()) {
|
||||
list.add(type);
|
||||
}
|
||||
Collections.addAll(list, PlankType.ExtraTreePlanks.values());
|
||||
Collections.addAll(list, PlankType.ForestryPlanks.values());
|
||||
for (final IPlankType type : PlankType.ExtraBiomesPlank.values()) {
|
||||
if (type.getStack() != null) {
|
||||
list.add(type);
|
||||
}
|
||||
}
|
||||
for (final IPlankType type : PlankType.VanillaPlanks.values()) {
|
||||
list.add(type);
|
||||
}
|
||||
Collections.addAll(list, PlankType.VanillaPlanks.values());
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user