Updated ParticleSet to have particle id

This commit is contained in:
Teriuihi 2022-01-13 21:25:35 +01:00
parent 2056194d7d
commit a5d7afe556
2 changed files with 8 additions and 2 deletions

View File

@ -53,4 +53,8 @@ public class ParticleSet {
public ItemStack getItemStack() {
return itemStack;
}
public String getParticleId() {
return uniqueId;
}
}

View File

@ -20,10 +20,12 @@ public class Test {
static {
MiniMessage miniMessage = MiniMessage.miniMessage();
itemStack = new ItemStack(Material.CHEST);
itemStack = new ItemStack(Material.BUCKET);
ItemMeta itemMeta = itemStack.getItemMeta();
itemMeta.displayName(miniMessage.deserialize("<gold>TestParticles</gold>"));
itemMeta.lore(List.of(miniMessage.deserialize("<dark_aqua>A particle to test\nthe functionality of this plugin</dark_aqua>")));
itemMeta.lore(List.of(
miniMessage.deserialize("<dark_aqua>A particle to test</dark_aqua>"),
miniMessage.deserialize("<dark_aqua>the functionality of this plugin</dark_aqua>")));
itemStack.setItemMeta(itemMeta);
}