Class SpellInfoScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.binaris.wizardry.client.gui.screens.abstr.SpellInfoScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement
- Direct Known Subclasses:
SpellBookScreen
public abstract class SpellInfoScreen
extends net.minecraft.client.gui.screens.Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected static final Stringprotected final intprotected final intFields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpellInfoScreen(int xSize, int ySize, net.minecraft.network.chat.Component component) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackgroundLayer(int left, int top, int mouseX, int mouseY) protected voiddrawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int left, int top, int mouseX, int mouseY) abstract SpellgetSpell()abstract net.minecraft.resources.ResourceLocationprotected voidinit()voidrender(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected voidsetTextureSize(int width, int height) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
TRANSLATION_KEY_PREFIX
- See Also:
-
xSize
protected final int xSize -
ySize
protected final int ySize -
textureWidth
protected int textureWidth -
textureHeight
protected int textureHeight
-
-
Constructor Details
-
SpellInfoScreen
protected SpellInfoScreen(int xSize, int ySize, net.minecraft.network.chat.Component component)
-
-
Method Details
-
setTextureSize
protected void setTextureSize(int width, int height) -
getSpell
-
getTexture
public abstract net.minecraft.resources.ResourceLocation getTexture() -
render
public void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classnet.minecraft.client.gui.screens.Screen
-
drawBackgroundLayer
protected void drawBackgroundLayer(int left, int top, int mouseX, int mouseY) -
drawForegroundLayer
protected void drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int left, int top, int mouseX, int mouseY) -
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.Screen
-