mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
Work on MultiFence
This commit is contained in:
1 parent
c949131976
commit
f1640ff21b
8 files changed
+200
-105
No files matched your search
@@ -122,7 +122,7 @@ public class WoodManager {
|
||||
}
|
||||
|
||||
public static List<IPlankType> getAllPlankTypes() {
|
||||
final List<IPlankType> list = new ArrayList<>();
|
||||
List<IPlankType> list = new ArrayList<>();
|
||||
Collections.addAll(list, PlankType.ExtraTreePlanks.values());
|
||||
Collections.addAll(list, PlankType.ForestryPlanks.values());
|
||||
//TODO: extrabiomes 1.10.2
|
||||
@@ -136,9 +136,9 @@ public class WoodManager {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static IPlankType get(final ItemStack species) {
|
||||
for (final IPlankType type : getAllPlankTypes()) {
|
||||
if (type.getStack().isItemEqual(species)) {
|
||||
public static IPlankType getPlankType(ItemStack itemStack) {
|
||||
for (IPlankType type : getAllPlankTypes()) {
|
||||
if (type.getStack(false).isItemEqual(itemStack)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user