Class RaidCatchScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.raids.RaidCatchScreen
- 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
public class RaidCatchScreen
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
FieldsFields inherited from class net.minecraft.client.gui.screens.Screen
children, CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionRaidCatchScreen(RaidData raid, boolean shiny, net.minecraft.world.item.ItemStack[] drops, List<ItemData> pokeballs, boolean canCatch) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbooleanmouseClicked(double mouseX, double mouseY, int mouseButton) booleanmouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) voidremoved()voidrender(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks) voidrenderBackground(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks) voidrenderPokeBallBreaking(net.minecraft.client.gui.GuiGraphics matrix, float scale, List<net.minecraft.world.item.ItemStack> stacks) Takes the Poké Ball's ItemStack components and renders them as particles moving across the screen to simulate the Poké Ball breaking.voidRenders the yellow stars that appear around the Poké Ball used to capture the raid Pokémon.voidresize(net.minecraft.client.Minecraft minecraft, int width, int height) voidvoidsetRaid(RaidData raid, RaidCatchScreen old) voidsetShakes(int shakes, boolean sentToPC) voidsetupAndRenderPokeBallBreaking(net.minecraft.client.gui.GuiGraphics matrix, float scale) Gets the component items, of the Poké Ball that will break due to failing to capture a Pokémon.booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, 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, mouseDragged, mouseReleased, 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
-
particleEngine
-
-
Constructor Details
-
RaidCatchScreen
-
-
Method Details
-
setRaid
-
setRaid
-
setShakes
public void setShakes(int shakes, boolean sentToPC) -
render
public void render(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classnet.minecraft.client.gui.screens.Screen
-
renderSuccessfulCatchStars
public void renderSuccessfulCatchStars()Renders the yellow stars that appear around the Poké Ball used to capture the raid Pokémon. They fade away while rotating after appearing. -
setupAndRenderPokeBallBreaking
public void setupAndRenderPokeBallBreaking(net.minecraft.client.gui.GuiGraphics matrix, float scale) Gets the component items, of the Poké Ball that will break due to failing to capture a Pokémon.- Parameters:
matrix- What is doing the renderingscale- The scale of the screen size?
-
renderPokeBallBreaking
public void renderPokeBallBreaking(net.minecraft.client.gui.GuiGraphics matrix, float scale, List<net.minecraft.world.item.ItemStack> stacks) Takes the Poké Ball's ItemStack components and renders them as particles moving across the screen to simulate the Poké Ball breaking.- Parameters:
matrix- Does the renderingscale- Helps scale things for the size of the screen?stacks- The items that craft into the breaking Poké Ball.
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) -
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screens.Screen
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.gui.screens.Screen
-
resize
public void resize(net.minecraft.client.Minecraft minecraft, int width, int height) - Overrides:
resizein classnet.minecraft.client.gui.screens.Screen
-
removed
public void removed()- Overrides:
removedin classnet.minecraft.client.gui.screens.Screen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classnet.minecraft.client.gui.screens.Screen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classnet.minecraft.client.gui.screens.Screen
-
getMillis
public long getMillis()
-