Enum Class ItemResourceRendering

java.lang.Object
java.lang.Enum<ItemResourceRendering>
com.refinedmods.refinedstorage.common.support.resource.ItemResourceRendering
All Implemented Interfaces:
ResourceRendering, Serializable, Comparable<ItemResourceRendering>, Constable

public enum ItemResourceRendering extends Enum<ItemResourceRendering> implements ResourceRendering
  • Enum Constant Details

  • Field Details

    • IN_WORLD_SCALE

      public static final org.joml.Matrix4f IN_WORLD_SCALE
  • Method Details

    • values

      public static ItemResourceRendering[] 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 ItemResourceRendering 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
    • formatAmount

      public String formatAmount(long amount, boolean withUnits)
      Specified by:
      formatAmount in interface ResourceRendering
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName(ResourceKey resource)
      Specified by:
      getDisplayName in interface ResourceRendering
    • getTooltip

      public List<net.minecraft.network.chat.Component> getTooltip(ResourceKey resource)
      Specified by:
      getTooltip in interface ResourceRendering
    • render

      public void render(ResourceKey resource, net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
      Specified by:
      render in interface ResourceRendering
    • render

      public void render(ResourceKey resource, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int light, net.minecraft.world.level.Level level)
      Specified by:
      render in interface ResourceRendering