public class MerchantScreen extends ContainerScreen<MerchantContainer>
Modifier and Type | Class and Description |
---|---|
(package private) class |
MerchantScreen.TradeButton |
Modifier and Type | Field and Description |
---|---|
private MerchantScreen.TradeButton[] |
field_214138_m |
private int |
field_214139_n |
private boolean |
field_214140_o |
private static ResourceLocation |
MERCHANT_GUI_TEXTURE |
private int |
selectedMerchantRecipe |
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 |
---|
MerchantScreen(MerchantContainer p_i51080_1_,
PlayerInventory p_i51080_2_,
ITextComponent p_i51080_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_195391_j() |
private void |
func_214129_a(int p_214129_1_,
int p_214129_2_,
MerchantOffers p_214129_3_) |
private void |
func_214130_a(int p_214130_1_,
int p_214130_2_,
MerchantOffer p_214130_3_) |
private void |
func_214134_a(MerchantOffer p_214134_1_,
int p_214134_2_,
int p_214134_3_) |
private boolean |
func_214135_a(int p_214135_1_) |
private void |
func_214137_a(ItemStack p_214137_1_,
ItemStack p_214137_2_,
int p_214137_3_,
int p_214137_4_) |
protected void |
init() |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
boolean |
mouseScrolled(double p_mouseScrolled_1_,
double p_mouseScrolled_3_,
double p_mouseScrolled_5_) |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
func_195363_d, getContainer, getGuiLeft, getGuiTop, getSlotColor, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, hasClickedOutside, isPauseScreen, isPointInRegion, keyPressed, mouseReleased, removed, 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, resize, 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, setFocusedDefault
mouseMoved
private static final ResourceLocation MERCHANT_GUI_TEXTURE
private int selectedMerchantRecipe
private final MerchantScreen.TradeButton[] field_214138_m
private int field_214139_n
private boolean field_214140_o
public MerchantScreen(MerchantContainer p_i51080_1_, PlayerInventory p_i51080_2_, ITextComponent p_i51080_3_)
private void func_195391_j()
protected void init()
init
in class ContainerScreen<MerchantContainer>
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class ContainerScreen<MerchantContainer>
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class ContainerScreen<MerchantContainer>
private void func_214130_a(int p_214130_1_, int p_214130_2_, MerchantOffer p_214130_3_)
private void func_214129_a(int p_214129_1_, int p_214129_2_, MerchantOffers p_214129_3_)
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class ContainerScreen<MerchantContainer>
private void func_214134_a(MerchantOffer p_214134_1_, int p_214134_2_, int p_214134_3_)
private void func_214137_a(ItemStack p_214137_1_, ItemStack p_214137_2_, int p_214137_3_, int p_214137_4_)
private boolean func_214135_a(int p_214135_1_)
public boolean mouseScrolled(double p_mouseScrolled_1_, double p_mouseScrolled_3_, double p_mouseScrolled_5_)
public boolean mouseDragged(double p_mouseDragged_1_, double p_mouseDragged_3_, int p_mouseDragged_5_, double p_mouseDragged_6_, double p_mouseDragged_8_)
mouseDragged
in interface IGuiEventListener
mouseDragged
in interface INestedGuiEventHandler
mouseDragged
in class ContainerScreen<MerchantContainer>
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
mouseClicked
in class ContainerScreen<MerchantContainer>