forked from Anvil-Dev/AnvilCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoyalUpgradeTemplateItem.java
54 lines (48 loc) · 2.47 KB
/
RoyalUpgradeTemplateItem.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package dev.dubhe.anvilcraft.item;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.SmithingTemplateItem;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class RoyalUpgradeTemplateItem extends SmithingTemplateItem {
private static final ChatFormatting TITLE_FORMAT = ChatFormatting.GRAY;
private static final ChatFormatting DESCRIPTION_FORMAT = ChatFormatting.BLUE;
private static final Component APPLIES_TO =
Component.translatable("screen.anvilcraft.smithing_template.royal_steel_upgrade_smithing_template.applies_to")
.withStyle(DESCRIPTION_FORMAT);
private static final Component UPGRADE_INGREDIENTS =
Component.translatable("item.anvilcraft.royal_steel_ingot").withStyle(DESCRIPTION_FORMAT);
private static final Component UPGRADE =
Component.translatable("screen.anvilcraft.royal_steel_upgrade_smithing_template").withStyle(TITLE_FORMAT);
private static final Component UPGRADE_BASE_SLOT_DESCRIPTION =
Component.translatable(
"screen.anvilcraft.smithing_template.royal_steel_upgrade_smithing_template.base_slot_description");
private static final Component UPGRADE_ADDITIONS_SLOT_DESCRIPTION =
Component.translatable(
"screen.anvilcraft.smithing_template.royal_steel_upgrade_smithing_template.additions_slot_description");
private static final ResourceLocation EMPTY_SLOT_PICKAXE = new ResourceLocation("item/empty_slot_pickaxe");
private static final ResourceLocation EMPTY_SLOT_INGOT = new ResourceLocation("item/empty_slot_ingot");
private static final ResourceLocation EMPTY_SLOT_HAMMER = new ResourceLocation(
"anvilcraft",
"item/empty_slot_hammer"
);
private static final ResourceLocation EMPTY_SLOT_BLOCK = new ResourceLocation(
"anvilcraft",
"item/empty_slot_block"
);
public RoyalUpgradeTemplateItem(@SuppressWarnings("unused") Properties properties) {
super(APPLIES_TO,
UPGRADE_INGREDIENTS,
UPGRADE,
UPGRADE_BASE_SLOT_DESCRIPTION,
UPGRADE_ADDITIONS_SLOT_DESCRIPTION,
List.of(EMPTY_SLOT_PICKAXE, EMPTY_SLOT_HAMMER),
List.of(EMPTY_SLOT_INGOT, EMPTY_SLOT_BLOCK)
);
}
@Override
public @NotNull String getDescriptionId() {
return this.getOrCreateDescriptionId();
}
}