Skip to content

Commit 2836133

Browse files
committed
Improve UI title rendering
1 parent cc9867d commit 2836133

14 files changed

+56
-34
lines changed

src/main/java/rearth/oritech/block/entity/machines/generators/BasicGeneratorEntity.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
import net.minecraft.block.BlockState;
44
import net.minecraft.block.entity.AbstractFurnaceBlockEntity;
5-
import net.minecraft.block.entity.FurnaceBlockEntity;
6-
import net.minecraft.inventory.Inventories;
75
import net.minecraft.item.Item;
8-
import net.minecraft.item.Items;
9-
import net.minecraft.recipe.RecipeType;
106
import net.minecraft.screen.ScreenHandlerType;
117
import net.minecraft.util.math.BlockPos;
128
import net.minecraft.util.math.Vec3i;
@@ -17,7 +13,6 @@
1713
import rearth.oritech.init.recipes.RecipeContent;
1814
import rearth.oritech.util.InventorySlotAssignment;
1915

20-
import java.util.ArrayList;
2116
import java.util.List;
2217
import java.util.Map;
2318

@@ -57,7 +52,7 @@ public InventorySlotAssignment getSlots() {
5752
@Override
5853
public List<GuiSlot> getGuiSlots() {
5954
return List.of(
60-
new GuiSlot(0, 80, 11));
55+
new GuiSlot(0, 80, 21));
6156
}
6257

6358
@Override

src/main/java/rearth/oritech/block/entity/machines/generators/TestGeneratorEntity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package rearth.oritech.block.entity.machines.generators;
22

33
import net.minecraft.block.BlockState;
4-
import net.minecraft.block.entity.BlockEntityType;
54
import net.minecraft.screen.ScreenHandlerType;
65
import net.minecraft.util.math.BlockPos;
76
import net.minecraft.util.math.Vec3i;
@@ -33,7 +32,7 @@ public InventorySlotAssignment getSlots() {
3332
@Override
3433
public List<GuiSlot> getGuiSlots() {
3534
return List.of(
36-
new GuiSlot(0, 75, 11),
35+
new GuiSlot(0, 75, 21),
3736
new GuiSlot(1, 75, 59));
3837
}
3938

src/main/java/rearth/oritech/block/entity/machines/interaction/DestroyerBlockEntity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public BlockState getMachineHead() {
8989
@Override
9090
public List<ScreenProvider.GuiSlot> getGuiSlots() {
9191
return List.of(
92-
new GuiSlot(0, 50, 11),
93-
new GuiSlot(1, 70, 11),
94-
new GuiSlot(2, 90, 11));
92+
new GuiSlot(0, 50, 21),
93+
new GuiSlot(1, 70, 21),
94+
new GuiSlot(2, 90, 21));
9595
}
9696

9797
@Override

src/main/java/rearth/oritech/block/entity/machines/processing/AssemblerBlockEntity.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package rearth.oritech.block.entity.machines.processing;
22

33
import net.minecraft.block.BlockState;
4-
import net.minecraft.inventory.Inventory;
54
import net.minecraft.screen.ScreenHandlerType;
65
import net.minecraft.util.math.BlockPos;
76
import net.minecraft.util.math.Vec3i;
@@ -11,9 +10,7 @@
1110
import rearth.oritech.init.recipes.OritechRecipeType;
1211
import rearth.oritech.init.recipes.RecipeContent;
1312
import rearth.oritech.util.InventorySlotAssignment;
14-
import team.reborn.energy.api.EnergyStorage;
1513

16-
import java.util.ArrayList;
1714
import java.util.List;
1815

1916
public class AssemblerBlockEntity extends MultiblockMachineEntity {
@@ -35,8 +32,8 @@ public InventorySlotAssignment getSlots() {
3532
@Override
3633
public List<GuiSlot> getGuiSlots() {
3734
return List.of(
38-
new GuiSlot(0, 70, 11),
39-
new GuiSlot(1, 90, 11),
35+
new GuiSlot(0, 70, 21),
36+
new GuiSlot(1, 90, 21),
4037
new GuiSlot(2, 80, 59));
4138
}
4239

src/main/java/rearth/oritech/block/entity/machines/processing/AtomicForgeBlockEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public InventorySlotAssignment getSlots() {
3333
@Override
3434
public List<GuiSlot> getGuiSlots() {
3535
return List.of(
36-
new GuiSlot(0, 70, 11),
37-
new GuiSlot(1, 90, 11),
36+
new GuiSlot(0, 70, 21),
37+
new GuiSlot(1, 90, 21),
3838
new GuiSlot(2, 80, 59));
3939
}
4040

src/main/java/rearth/oritech/block/entity/machines/processing/CentrifugeBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public InventorySlotAssignment getSlots() {
136136
@Override
137137
public List<GuiSlot> getGuiSlots() {
138138
return List.of(
139-
new GuiSlot(0, 80, 11),
139+
new GuiSlot(0, 80, 21),
140140
new GuiSlot(1, 60, 59),
141141
new GuiSlot(2, 80, 59),
142142
new GuiSlot(3, 100, 59));

src/main/java/rearth/oritech/block/entity/machines/processing/FoundryBlockEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public InventorySlotAssignment getSlots() {
3232
@Override
3333
public List<GuiSlot> getGuiSlots() {
3434
return List.of(
35-
new GuiSlot(0, 70, 11),
36-
new GuiSlot(1, 90, 11),
35+
new GuiSlot(0, 70, 21),
36+
new GuiSlot(1, 90, 21),
3737
new GuiSlot(2, 80, 59));
3838
}
3939

src/main/java/rearth/oritech/block/entity/machines/processing/FragmentForgeBlockEntity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public InventorySlotAssignment getSlots() {
8686
@Override
8787
public List<GuiSlot> getGuiSlots() {
8888
return List.of(
89-
new GuiSlot(0, 80, 11),
90-
new GuiSlot(1, 100, 11),
91-
new GuiSlot(2, 120, 11),
92-
new GuiSlot(3, 140, 11),
89+
new GuiSlot(0, 80, 21),
90+
new GuiSlot(1, 100, 21),
91+
new GuiSlot(2, 120, 21),
92+
new GuiSlot(3, 140, 21),
9393
new GuiSlot(4, 80, 59),
9494
new GuiSlot(5, 100, 59));
9595
}

src/main/java/rearth/oritech/block/entity/machines/processing/PoweredFurnaceBlockEntity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package rearth.oritech.block.entity.machines.processing;
22

33
import net.minecraft.block.BlockState;
4-
import net.minecraft.inventory.SimpleInventory;
54
import net.minecraft.recipe.RecipeType;
65
import net.minecraft.recipe.SmeltingRecipe;
76
import net.minecraft.screen.ScreenHandlerType;
@@ -17,7 +16,6 @@
1716
import rearth.oritech.init.recipes.OritechRecipeType;
1817
import rearth.oritech.init.recipes.RecipeContent;
1918
import rearth.oritech.util.InventorySlotAssignment;
20-
import rearth.oritech.util.ScreenProvider;
2119

2220
import java.util.List;
2321
import java.util.Objects;
@@ -130,7 +128,7 @@ public boolean inputOptionsEnabled() {
130128
@Override
131129
public List<GuiSlot> getGuiSlots() {
132130
return List.of(
133-
new GuiSlot(0, 80, 11),
131+
new GuiSlot(0, 80, 21),
134132
new GuiSlot(1, 80, 59));
135133
}
136134

src/main/java/rearth/oritech/block/entity/machines/processing/PulverizerBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public InventorySlotAssignment getSlots() {
3434
@Override
3535
public List<GuiSlot> getGuiSlots() {
3636
return List.of(
37-
new GuiSlot(0, 80, 11),
37+
new GuiSlot(0, 80, 21),
3838
new GuiSlot(1, 70, 59),
3939
new GuiSlot(2, 90, 59));
4040
}

0 commit comments

Comments
 (0)