public void displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_) { this.getNextWindowId(); this.playerNetServerHandler.sendPacket( new S2DPacketOpenWindow( this.currentWindowId, 9, p_96125_1_.getInventoryName(), p_96125_1_.getSizeInventory(), p_96125_1_.isCustomInventoryName())); this.openContainer = new ContainerHopper(this.inventory, p_96125_1_); this.openContainer.windowId = this.currentWindowId; this.openContainer.onCraftGuiOpened(this); }