@Environment(value=CLIENT) public class LoomScreen extends HandledScreen<LoomScreenHandler>
| Modifier and Type | Field and Description |
|---|---|
private ItemStack |
banner |
private ModelPart |
bannerField |
private boolean |
canApplyDyePattern |
private boolean |
canApplySpecialPattern |
private ItemStack |
dye |
private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> |
field_21841 |
private int |
firstPatternButtonId |
private boolean |
hasTooManyPatterns |
private ItemStack |
pattern |
private static int |
PATTERN_BUTTON_ROW_COUNT |
private boolean |
scrollbarClicked |
private float |
scrollPosition |
private static Identifier |
TEXTURE |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
LoomScreen(LoomScreenHandler handler,
PlayerInventory inventory,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground(MatrixStack matrixStack,
float float2,
int mouseY,
int int2) |
protected void |
drawForeground(MatrixStack matrixStack,
int int2,
int int3) |
protected boolean |
isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button) |
private void |
method_22692(int int2,
int int3,
int int4) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
private void |
onInventoryChanged() |
void |
render(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, init, isPauseScreen, isPointWithinBounds, keyPressed, mouseReleased, onMouseClick, removed, shouldCloseOnEsc, tickaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, setInitialFocusmouseMovedprivate static final Identifier TEXTURE
private static final int PATTERN_BUTTON_ROW_COUNT
private final ModelPart bannerField
@Nullable private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> field_21841
private ItemStack banner
private ItemStack dye
private ItemStack pattern
private boolean canApplyDyePattern
private boolean canApplySpecialPattern
private boolean hasTooManyPatterns
private float scrollPosition
private boolean scrollbarClicked
private int firstPatternButtonId
public LoomScreen(LoomScreenHandler handler, PlayerInventory inventory, Text title)
public void render(MatrixStack matrixStack, int mouseY, int int2, float float2)
render in interface Drawablerender in class HandledScreen<LoomScreenHandler>protected void drawForeground(MatrixStack matrixStack, int int2, int int3)
drawForeground in class HandledScreen<LoomScreenHandler>protected void drawBackground(MatrixStack matrixStack, float float2, int mouseY, int int2)
drawBackground in class HandledScreen<LoomScreenHandler>private void method_22692(int int2,
int int3,
int int4)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface ElementmouseClicked in interface ParentElementmouseClicked in class HandledScreen<LoomScreenHandler>public boolean mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY)
mouseDragged in interface ElementmouseDragged in interface ParentElementmouseDragged in class HandledScreen<LoomScreenHandler>public boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
protected boolean isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button)
isClickOutsideBounds in class HandledScreen<LoomScreenHandler>private void onInventoryChanged()