mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-21 07:22:53 +00:00
27 lines
1 KiB
C++
27 lines
1 KiB
C++
#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> inventory,
|
|
std::shared_ptr<DispenserTileEntity> 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
|
|
} |