#include "../../../../../../Minecraft.World/Header Files/stdafx.h" #include "TrapScreen.h" #include "../../player/LocalPlayer.h" #include "../../renderer/Textures.h" #include "../../../../../../Minecraft.World/net/minecraft/world/inventory/net.minecraft.world.inventory.h" #include "../../../../../../Minecraft.World/net/minecraft/world/level/tile/entity/DispenserTileEntity.h" #include "../../../../../../Minecraft.World/net/minecraft/world/net.minecraft.world.h" #ifdef ENABLE_JAVA_GUIS ResourceLocation GUI_TRAP_LOCATION = ResourceLocation(TN_GUI_TRAP); #endif TrapScreen::TrapScreen(std::shared_ptr inventory, std::shared_ptr trap) : AbstractContainerScreen(new TrapMenu(inventory, trap)) { this->trap = trap; this->inventory = inventory; } void TrapScreen::renderLabels() { font->draw(trap->getName(), 16 + 4 + 40, 2 + 2 + 2, 0x404040); font->draw(inventory->getName(), 8, imageHeight - 96 + 2, 0x404040); } void TrapScreen::renderBg(float a) { // 4J Unused }