public class AnvilScreen extends ContainerScreen<RepairContainer> implements IContainerListener
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
ANVIL_RESOURCE |
private TextFieldWidget |
nameField |
container, dragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, slotColor, xSize, ySize
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
AnvilScreen(RepairContainer p_i51103_1_,
PlayerInventory p_i51103_2_,
ITextComponent p_i51103_3_) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
private void |
func_214075_a(java.lang.String p_214075_1_) |
protected void |
init() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
void |
resize(Minecraft p_resize_1_,
int p_resize_2_,
int p_resize_3_) |
void |
sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue) |
func_195363_d, getContainer, getGuiLeft, getGuiTop, getSlotColor, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, hasClickedOutside, isPauseScreen, isPointInRegion, mouseClicked, mouseDragged, mouseReleased, renderHoveredToolTip, shouldCloseOnEsc, tick
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, setSize, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseScrolled, setFocusedDefault
mouseMoved
private static final ResourceLocation ANVIL_RESOURCE
private TextFieldWidget nameField
public AnvilScreen(RepairContainer p_i51103_1_, PlayerInventory p_i51103_2_, ITextComponent p_i51103_3_)
protected void init()
init
in class ContainerScreen<RepairContainer>
public void resize(Minecraft p_resize_1_, int p_resize_2_, int p_resize_3_)
public void removed()
removed
in class ContainerScreen<RepairContainer>
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
keyPressed
in class ContainerScreen<RepairContainer>
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class ContainerScreen<RepairContainer>
private void func_214075_a(java.lang.String p_214075_1_)
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class ContainerScreen<RepairContainer>
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class ContainerScreen<RepairContainer>
public void sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents
in interface IContainerListener
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents
in interface IContainerListener
public void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty
in interface IContainerListener