Skip to content

Commit

Permalink
added another tooltip to gt hoppers
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jan 15, 2025
1 parent 20c2666 commit 5e19879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected void english(String domain, String locale) {
add("machine.gtcore.stack_limit", "Outputs exactly %s items");
add("machine.gtcore.no_stack_limit", "Outputs up to a full stack");
add("machine.gtcore.hopper.slots", "Slots: %s");
add("machine.gtcore.hopper.screwdriver", "Use screwdriver to configure output amount");
add("tooltip.gtcore.redstone_wire_range", "Range: %s");
add("tooltip.gtcore.redstone_wire_light", "Emits light");
add(GTCoreBlocks.RUBBER_LEAVES, "Rubber Leaves");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public HopperMachine(String domain, Material material, int slots) {
addFlags(ITEM, GUI);
removeFlags(MachineFlag.COVERABLE);
addTooltipInfo(Utils.translatable("machine.gtcore.hopper.slots", slots));
addTooltipInfo(Utils.translatable("machine.gtcore.hopper.screwdriver"));
if (slots <= 0) throw new IllegalArgumentException("slots cannot be <= 0!");
if (slots > 36) throw new IllegalArgumentException("slots cannot be > 36!");
AntimatterAPI.register(HopperMachine.class, this);
Expand Down

0 comments on commit 5e19879

Please sign in to comment.