IF icon indicating copy to clipboard operation
IF copied to clipboard

Item UUID Randomizer

Open Danieljunek17 opened this issue 11 months ago • 1 comments

Hey, I have some problems regarding your item randomizer

private GuiItem(@NotNull ItemStack item, @Nullable Consumer<InventoryClickEvent> action, @NotNull Logger logger, @NotNull NamespacedKey key) {
    this.uuid = UUID.randomUUID();
    this.logger = logger;
    this.keyUUID = key;
    this.action = action;
    this.visible = true;
    this.properties = new ArrayList();
    this.item = item;
    this.applyUUID();
}

this constructor always adds an id to an item but in my case I really don't want this beause people can interact with this menu and this makes it so seemingly 2 blocks that are the same are not so they can't stack them and strict checks for removing an item out of a list won't work either.

Danieljunek17 avatar Feb 27 '25 08:02 Danieljunek17

The proposed solution is to make some extra constructors where we have a boolean to control this behaviour

Danieljunek17 avatar Feb 27 '25 08:02 Danieljunek17