Class StonecutterScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, MenuAccess<StonecutterMenu>

public class StonecutterScreen extends AbstractContainerScreen<StonecutterMenu>
  • Field Details

    • SCROLLER_SPRITE

      private static final ResourceLocation SCROLLER_SPRITE
    • SCROLLER_DISABLED_SPRITE

      private static final ResourceLocation SCROLLER_DISABLED_SPRITE
    • RECIPE_SELECTED_SPRITE

      private static final ResourceLocation RECIPE_SELECTED_SPRITE
    • RECIPE_HIGHLIGHTED_SPRITE

      private static final ResourceLocation RECIPE_HIGHLIGHTED_SPRITE
    • RECIPE_SPRITE

      private static final ResourceLocation RECIPE_SPRITE
    • BG_LOCATION

      private static final ResourceLocation BG_LOCATION
    • SCROLLER_WIDTH

      private static final int SCROLLER_WIDTH
      See Also:
    • SCROLLER_HEIGHT

      private static final int SCROLLER_HEIGHT
      See Also:
    • RECIPES_COLUMNS

      private static final int RECIPES_COLUMNS
      See Also:
    • RECIPES_ROWS

      private static final int RECIPES_ROWS
      See Also:
    • RECIPES_IMAGE_SIZE_WIDTH

      private static final int RECIPES_IMAGE_SIZE_WIDTH
      See Also:
    • RECIPES_IMAGE_SIZE_HEIGHT

      private static final int RECIPES_IMAGE_SIZE_HEIGHT
      See Also:
    • SCROLLER_FULL_HEIGHT

      private static final int SCROLLER_FULL_HEIGHT
      See Also:
    • RECIPES_X

      private static final int RECIPES_X
      See Also:
    • RECIPES_Y

      private static final int RECIPES_Y
      See Also:
    • scrollOffs

      private float scrollOffs
    • scrolling

      private boolean scrolling
      Is true if the player clicked on the scroll wheel in the GUI.
    • startIndex

      private int startIndex
      The index of the first recipe to display. The number of recipes displayed at any time is 12 (4 recipes per row, and 3 rows). If the player scrolled down one row, this value would be 4 (representing the index of the first slot on the second row).
    • displayRecipes

      private boolean displayRecipes
  • Constructor Details

  • Method Details