mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 21:19:56 +00:00
Add MultiFenceRecipe Jei Registry Plugin
This commit is contained in:
1 parent
7964e56c77
commit
8ba9d8609b
9 files changed
+463
-2
No files matched your search
@@ -14,13 +14,16 @@ import forestry.core.utils.Translator;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class WoodManager {
|
||||
public static Map<IPlankType, ItemStack> PLANKS;
|
||||
public static String getDisplayName(IWoodTyped wood, IWoodType woodType) {
|
||||
WoodBlockKind blockKind = wood.getBlockKind();
|
||||
|
||||
@@ -134,6 +137,22 @@ public class WoodManager {
|
||||
Collections.addAll(list, PlankType.VanillaPlanks.values());
|
||||
return list;
|
||||
}
|
||||
|
||||
public static Map<IPlankType, ItemStack> getAllPlankStacks(){
|
||||
if(PLANKS == null){
|
||||
PLANKS = new HashMap<>();
|
||||
for(IPlankType type : getAllPlankTypes()){
|
||||
PLANKS.put(type, type.getStack(false));
|
||||
}
|
||||
}
|
||||
return PLANKS;
|
||||
}
|
||||
|
||||
public static Collection<ItemStack> getAllPlankStacks(IPlankType type){
|
||||
Map<IPlankType, ItemStack> planks = new HashMap<>(getAllPlankStacks());
|
||||
planks.remove(type);
|
||||
return planks.values();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static IPlankType getPlankType(ItemStack itemStack) {
|
||||
|
||||
Reference in new issue
Block a user