Browse Source

完成附魔台 GUI 替换

LTCatt 6 years ago
parent
commit
a1a8af15a5

+ 1 - 1
src/main/java/com/hexdragon/enchre/block/enchantingtable/EnchantmentContainerRe.java

@@ -79,7 +79,7 @@ public class EnchantmentContainerRe extends Container {
 
         for(int i = 0; i < 3; ++i) {
             for(int j = 0; j < 9; ++j) {
-                this.addSlot(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + 50 + i * 18)); // TODO : 确认附魔台 UI 已经被替换了
+                this.addSlot(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
             }
         }
 

+ 1 - 1
src/main/java/com/hexdragon/enchre/block/enchantingtable/EnchantmentScreenRe.java

@@ -140,7 +140,7 @@ public class EnchantmentScreenRe extends ContainerScreen<EnchantmentContainerRe>
         int l = this.container.getLapisAmount();
 
         for(int i1 = 0; i1 < 3; ++i1) {
-            int j1 = i + 60 + 50; // TODO : 调试用的 50,确认替换
+            int j1 = i + 60;
             int k1 = j1 + 20;
             this.setBlitOffset(0);
             this.minecraft.getTextureManager().bindTexture(ENCHANTMENT_TABLE_GUI_TEXTURE);

+ 2 - 1
src/main/resources/mixins.enchre.json

@@ -3,6 +3,7 @@
   "package": "com.hexdragon.enchre.mixin",
   "compatibilityLevel": "JAVA_8",
   "mixins": [
-    "item/ItemMixin"
+    "item/ItemMixin",
+    "block/EnchantingTableBlockMixin"
   ]
 }