Empty Slot Icon Lists of Armor and Tools
This commit is contained in:
parent
1a18422f90
commit
a34a15620a
1 changed files with 19 additions and 5 deletions
|
@ -6,6 +6,8 @@ import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.item.SmithingTemplateItem;
|
import net.minecraft.world.item.SmithingTemplateItem;
|
||||||
|
|
||||||
|
import org.spongepowered.include.com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class SmithingTemplates {
|
public class SmithingTemplates {
|
||||||
|
@ -25,18 +27,30 @@ public class SmithingTemplates {
|
||||||
public static final ResourceLocation EMPTY_SLOT_REDSTONE_DUST = new ResourceLocation("item/empty_slot_redstone_dust");
|
public static final ResourceLocation EMPTY_SLOT_REDSTONE_DUST = new ResourceLocation("item/empty_slot_redstone_dust");
|
||||||
public static final ResourceLocation EMPTY_SLOT_DIAMOND = new ResourceLocation("item/empty_slot_diamond");
|
public static final ResourceLocation EMPTY_SLOT_DIAMOND = new ResourceLocation("item/empty_slot_diamond");
|
||||||
|
|
||||||
public static final List<ResourceLocation> ARMOR_AND_TOOLS = List.of(
|
public static final List<ResourceLocation> TOOLS = List.of(
|
||||||
EMPTY_SLOT_HELMET,
|
|
||||||
EMPTY_SLOT_SWORD,
|
EMPTY_SLOT_SWORD,
|
||||||
EMPTY_SLOT_CHESTPLATE,
|
|
||||||
EMPTY_SLOT_PICKAXE,
|
EMPTY_SLOT_PICKAXE,
|
||||||
EMPTY_SLOT_LEGGINGS,
|
|
||||||
EMPTY_SLOT_AXE,
|
EMPTY_SLOT_AXE,
|
||||||
EMPTY_SLOT_BOOTS,
|
|
||||||
EMPTY_SLOT_HOE,
|
EMPTY_SLOT_HOE,
|
||||||
EMPTY_SLOT_SHOVEL
|
EMPTY_SLOT_SHOVEL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public static final List<ResourceLocation> ARMOR = List.of(
|
||||||
|
EMPTY_SLOT_HELMET,
|
||||||
|
EMPTY_SLOT_CHESTPLATE,
|
||||||
|
EMPTY_SLOT_LEGGINGS,
|
||||||
|
EMPTY_SLOT_BOOTS
|
||||||
|
);
|
||||||
|
public static final List<ResourceLocation> ARMOR_AND_TOOLS = combine(ARMOR, TOOLS);
|
||||||
|
|
||||||
|
public static List<ResourceLocation> combine(List<ResourceLocation>... sources) {
|
||||||
|
final ImmutableList.Builder<ResourceLocation> builder = ImmutableList.builder();
|
||||||
|
for (var s : sources) {
|
||||||
|
builder.addAll(s);
|
||||||
|
}
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
public static Builder create(ResourceLocation id) {
|
public static Builder create(ResourceLocation id) {
|
||||||
return new Builder(id);
|
return new Builder(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue