Enum Class PetrolparkGuiTexture

java.lang.Object
java.lang.Enum<PetrolparkGuiTexture>
com.petrolpark.client.rendering.PetrolparkGuiTexture
All Implemented Interfaces:
IGuiTexture, Serializable, Comparable<PetrolparkGuiTexture>, Constable, net.createmod.catnip.gui.element.ScreenElement

public enum PetrolparkGuiTexture extends Enum<PetrolparkGuiTexture> implements IGuiTexture
  • Enum Constant Details

  • Field Details

    • location

      public final net.minecraft.resources.ResourceLocation location
    • width

      public final int width
    • height

      public final int height
    • startX

      public final int startX
    • startY

      public final int startY
    • textureWidth

      public final int textureWidth
    • textureHeight

      public final int textureHeight
  • Method Details

    • values

      public static PetrolparkGuiTexture[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PetrolparkGuiTexture valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • bind

      public void bind()
      Specified by:
      bind in interface IGuiTexture
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
      Specified by:
      render in interface net.createmod.catnip.gui.element.ScreenElement
    • getLocation

      public net.minecraft.resources.ResourceLocation getLocation()
      Specified by:
      getLocation in interface IGuiTexture
    • getStartX

      public int getStartX()
      Specified by:
      getStartX in interface IGuiTexture
    • getStartY

      public int getStartY()
      Specified by:
      getStartY in interface IGuiTexture
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface IGuiTexture
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface IGuiTexture
    • getTextureWidth

      public int getTextureWidth()
      Specified by:
      getTextureWidth in interface IGuiTexture
    • getTextureHeight

      public int getTextureHeight()
      Specified by:
      getTextureHeight in interface IGuiTexture