java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.simibubi.create.foundation.gui.AbstractSimiScreen
com.simibubi.create.content.curiosities.zapper.ZapperScreen
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget
Direct Known Subclasses:
WorldshaperScreen

public abstract class ZapperScreen extends AbstractSimiScreen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected float
     
    protected AllGuiTextures
     
    protected int
     
     
    protected int
     
    protected net.minecraft.world.InteractionHand
     
    protected Vector<IconButton>
     
    protected final net.minecraft.network.chat.Component
     
    protected net.minecraft.network.chat.Component
     
    protected net.minecraft.world.item.ItemStack
     

    Fields inherited from class com.simibubi.create.foundation.gui.AbstractSimiScreen

    guiLeft, guiTop, windowHeight, windowWidth, windowXOffset, windowYOffset

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    font, height, itemRenderer, minecraft, passEvents, renderables, width

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZapperScreen(AllGuiTextures background, net.minecraft.world.item.ItemStack zapper, net.minecraft.world.InteractionHand hand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawOnBackground(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
     
    protected abstract ConfigureZapperPacket
     
    protected void
     
    void
     
    protected void
    renderBlock(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
     
    protected void
    renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    protected void
    renderZapper(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
     
    void
     

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved
  • Field Details

    • patternSection

      protected final net.minecraft.network.chat.Component patternSection
    • background

      protected AllGuiTextures background
    • zapper

      protected net.minecraft.world.item.ItemStack zapper
    • hand

      protected net.minecraft.world.InteractionHand hand
    • animationProgress

      protected float animationProgress
    • title

      protected net.minecraft.network.chat.Component title
    • patternButtons

      protected Vector<IconButton> patternButtons
    • brightColor

      protected int brightColor
    • fontColor

      protected int fontColor
    • currentPattern

      protected PlacementPatterns currentPattern
  • Constructor Details

    • ZapperScreen

      public ZapperScreen(AllGuiTextures background, net.minecraft.world.item.ItemStack zapper, net.minecraft.world.InteractionHand hand)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class AbstractSimiScreen
    • renderWindow

      protected void renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
      Specified by:
      renderWindow in class AbstractSimiScreen
    • drawOnBackground

      protected void drawOnBackground(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
    • tick

      public void tick()
      Overrides:
      tick in class AbstractSimiScreen
    • removed

      public void removed()
      Overrides:
      removed in class net.minecraft.client.gui.screens.Screen
    • renderZapper

      protected void renderZapper(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
    • renderBlock

      protected void renderBlock(com.mojang.blaze3d.vertex.PoseStack ms, int x, int y)
    • getConfigurationPacket

      protected abstract ConfigureZapperPacket getConfigurationPacket()