Thaumic Augmentation

Thaumic Augmentation

7M Downloads

[RFC] Gui identifier for warded chest

LincT opened this issue ยท 3 comments

commented

This is more to do with Quark than ThaumicAugmentation.
I'm working on adjusting configs for cross compatibility and thought it'd be nifty to have the sort button enabled on warded chests.

For the purpose of this, can the name of the gui be verified?
I've got thaumicaugmentation:GUIWardedChest though it's not behaving as expected.

commented

Solved it:

image

"inventory sorting" { ... S:"Forced GUIs" < minecraft:dropper thaumicaugmentation:GUIWardedChest > ... "chest buttons" { ... S:"Forced GUIs" < minecraft:dropper thecodex6824.thaumicaugmentation.client.gui.GUIWardedChest ...

commented

How does Quark normally detect GUIs for the sort buttons? Is there something I can do on my end to make it work automatically? The warded chest intentionally doesn't expose it's inventory in the usual way, so maybe that's tricking Quark?

commented

From what I can tell it's looking for a couple keywords, otherwise one adds it forcefully in the configs

 # Allow anything with 'chest' in its block identifier to be used as a dropoff inventory?
        B:"Dropoff to Any Chest Block"=true

        # Allow any block with 'chest' in its modid identifier to be used as a dropoff inventory?
        B:"Dropoff to Any Chest Mod"=true

        # Allow anything with 'chest' in its TileEntity identifier to be used as a dropoff inventory?
        B:"Dropoff to Any Chest Tile"=true

        # GUIs in which the chest buttons should be forced to show up. Use the "Debug Classnames" option to find the names.
        S:"Forced GUIs" <
			net.minecraft.client.gui.inventory.GuiDispenser
			thecodex6824.thaumicaugmentation.client.gui.GUIWardedChest
         >
        ```
        
        in the snip above it shows manually adding the sort function to dispensers and droppers, as well as the warded chest.
        
        
for shulker boxes, that looks like it's also manually configured in the configs:

"right click add to shulker box" {
    # Allow anything with 'shulker_box' in its item identifier to be treated as a shulker box?
    B:"Dropoff to Any Shulker Box"=true

    # Blocks which should be interpreted as Shulker Boxes.
    S:"Shulker Boxes" <
        minecraft:white_shulker_box
        minecraft:orange_shulker_box
        minecraft:magenta_shulker_box
        minecraft:light_blue_shulker_box
        minecraft:yellow_shulker_box
        minecraft:lime_shulker_box
        minecraft:pink_shulker_box
        minecraft:gray_shulker_box
        minecraft:silver_shulker_box
        minecraft:cyan_shulker_box
        minecraft:purple_shulker_box
        minecraft:blue_shulker_box
        minecraft:brown_shulker_box
        minecraft:green_shulker_box
        minecraft:red_shulker_box
        minecraft:black_shulker_box
        
        ```

I cut the above to only focus on vanilla. it looks like in one block it's based on the gui class or name, in the other it's based on the mod:item