Skip to content

Commit 2fbd88f

Browse files
committed
feat: move lore to SoulflowComponent
1 parent c584bba commit 2fbd88f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

configuration/skyblock/items/miscellaneous/soulflow.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ items:
22
- id: RAW_SOULFLOW
33
material: PLAYER_HEAD
44
rarity: UNCOMMON
5-
lore:
6-
- "§7Hold and right-click to consume,"
7-
- "§7gaining §3+1⸎ Soulflow§7."
85
components:
96
- id: SOULFLOW
107
amount: 1
@@ -13,9 +10,6 @@ items:
1310
- id: SOULFLOW
1411
material: PLAYER_HEAD
1512
rarity: RARE
16-
lore:
17-
- "§7Hold and right-click to consume,"
18-
- "§7gaining §3+160⸎ Soulflow§7."
1913
components:
2014
- id: SOULFLOW
2115
amount: 160

type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/item/components/SoulflowComponent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@
44
import net.swofty.type.skyblockgeneric.gui.inventories.GUIConsumeSoulflow;
55
import net.swofty.type.skyblockgeneric.item.SkyBlockItemComponent;
66

7+
import java.util.List;
8+
79
public class SoulflowComponent extends SkyBlockItemComponent {
810

911
@Getter
1012
private final int amount;
1113

1214
public SoulflowComponent(int amount) {
15+
addInheritedComponent(new LoreUpdateComponent(
16+
List.of(
17+
"§7Hold and right-click to consume,",
18+
"§7gaining §3+" + amount + "⸎ Soulflow§7."
19+
), false
20+
));
1321
addInheritedComponent(
1422
new InteractableComponent((player, item) -> {
1523
new GUIConsumeSoulflow(item).open(player);

0 commit comments

Comments
 (0)