mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 06:24:37 +00:00
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package tconstruct.smeltery.items;
|
|
|
|
import java.util.List;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.item.*;
|
|
import tconstruct.tools.items.Pattern;
|
|
|
|
public class ClayPattern extends Pattern {
|
|
|
|
public ClayPattern(String patternType, String folder) {
|
|
super(patternName, getPatternNames(patternType), folder);
|
|
}
|
|
|
|
protected static String[] getPatternNames(String partType) {
|
|
String[] names = new String[patternName.length];
|
|
for (int i = 0; i < patternName.length; i++)
|
|
if (!(patternName[i].equals(""))) names[i] = partType + patternName[i];
|
|
else names[i] = "";
|
|
return names;
|
|
}
|
|
|
|
private static final String[] patternName = new String[] {
|
|
"ingot",
|
|
"rod",
|
|
"pickaxe",
|
|
"shovel",
|
|
"axe",
|
|
"swordblade",
|
|
"largeguard",
|
|
"mediumguard",
|
|
"crossbar",
|
|
"binding",
|
|
"frypan",
|
|
"sign",
|
|
"knifeblade",
|
|
"chisel",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"fullguard",
|
|
"",
|
|
"",
|
|
"arrowhead",
|
|
"gem",
|
|
"nugget"
|
|
};
|
|
|
|
@Override
|
|
public void getSubItems(Item p_150895_1_, CreativeTabs p_150895_2_, List p_150895_3_) {
|
|
for (int i = 0; i < patternName.length; i++)
|
|
if (!(patternName[i].equals(""))) p_150895_3_.add(new ItemStack(p_150895_1_, 1, i));
|
|
}
|
|
}
|