Class VendingMachineScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.npc.AbstractShopScreen
com.pixelmonmod.pixelmon.client.gui.vendingmachine.VendingMachineScreen
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 VendingMachineScreen extends AbstractShopScreen
GUI for purchasing from a vending machine.
  • Constructor Details

    • VendingMachineScreen

      public VendingMachineScreen(net.minecraft.core.BlockPos pos)
      Displays the vending machine GUI.
      Parameters:
      pos - The location of the vending machine being interacted with.
  • Method Details

    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
    • sendBuyPacket

      protected void sendBuyPacket()
      Description copied from class: AbstractShopScreen
      Sends a packet to the server when buying an item.
      Overrides:
      sendBuyPacket in class AbstractShopScreen
    • render

      public void render(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float f)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.Screen