mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	Update to Minecraft 1.14.4
This commit is contained in:
		| @@ -17,7 +17,7 @@ import dan200.computercraft.shared.computer.inventory.ContainerComputer; | ||||
| import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen; | ||||
| import net.minecraft.container.Container; | ||||
| import net.minecraft.entity.player.PlayerInventory; | ||||
| import net.minecraft.network.chat.TextComponent; | ||||
| import net.minecraft.text.LiteralText; | ||||
| import net.minecraft.util.Identifier; | ||||
| import org.lwjgl.glfw.GLFW; | ||||
|  | ||||
| @@ -39,7 +39,7 @@ public class GuiComputer<T extends Container> extends AbstractContainerScreen<T> | ||||
|  | ||||
|     public GuiComputer( T container, PlayerInventory player, ComputerFamily family, ClientComputer computer, int termWidth, int termHeight ) | ||||
|     { | ||||
|         super( container, player, new TextComponent( "" ) ); | ||||
|         super( container, player, new LiteralText( "" ) ); | ||||
|  | ||||
|         m_family = family; | ||||
|         m_computer = computer; | ||||
|   | ||||
| @@ -20,13 +20,13 @@ public class GuiDiskDrive extends AbstractContainerScreen<ContainerDiskDrive> | ||||
|  | ||||
|     public GuiDiskDrive( ContainerDiskDrive container, PlayerInventory inventory ) | ||||
|     { | ||||
|         super( container, inventory, ComputerCraft.Blocks.diskDrive.getTextComponent() ); | ||||
|         super( container, inventory, ComputerCraft.Blocks.diskDrive.getName() ); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     protected void drawForeground( int par1, int par2 ) | ||||
|     { | ||||
|         String title = getTitle().getFormattedText(); | ||||
|         String title = getTitle().asFormattedString(); | ||||
|         font.draw( title, (containerWidth - font.getStringWidth( title )) / 2.0f, 6, 0x404040 ); | ||||
|         font.draw( I18n.translate( "container.inventory" ), 8, (containerHeight - 96) + 2, 0x404040 ); | ||||
|     } | ||||
|   | ||||
| @@ -20,13 +20,13 @@ public class GuiPrinter extends AbstractContainerScreen<ContainerPrinter> | ||||
|  | ||||
|     public GuiPrinter( ContainerPrinter container, PlayerInventory player ) | ||||
|     { | ||||
|         super( container, player, ComputerCraft.Blocks.printer.getTextComponent() ); | ||||
|         super( container, player, ComputerCraft.Blocks.printer.getName() ); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     protected void drawForeground( int mouseX, int mouseY ) | ||||
|     { | ||||
|         String title = getTitle().getFormattedText(); | ||||
|         String title = getTitle().asFormattedString(); | ||||
|         font.draw( title, (containerWidth - font.getStringWidth( title )) / 2.0f, 6, 0x404040 ); | ||||
|         font.draw( I18n.translate( "container.inventory" ), 8, containerHeight - 96 + 2, 0x404040 ); | ||||
|     } | ||||
|   | ||||
| @@ -26,7 +26,7 @@ public class GuiPrintout extends AbstractContainerScreen<ContainerHeldItem> | ||||
|  | ||||
|     public GuiPrintout( ContainerHeldItem container, PlayerInventory player ) | ||||
|     { | ||||
|         super( container, player, container.getStack().getDisplayName() ); | ||||
|         super( container, player, container.getStack().getName() ); | ||||
|  | ||||
|         containerHeight = Y_SIZE; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 parly
					parly