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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatAmount
(long amount, boolean withUnits) net.minecraft.network.chat.Component
getDisplayName
(ResourceKey resource) List
<net.minecraft.network.chat.Component> getTooltip
(ResourceKey resource) void
render
(ResourceKey resource, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int light, net.minecraft.world.level.Level level) void
render
(ResourceKey resource, net.minecraft.client.gui.GuiGraphics graphics, int x, int y) static ItemResourceRendering
Returns the enum constant of this class with the specified name.static ItemResourceRendering[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.refinedmods.refinedstorage.common.api.support.resource.ResourceRendering
formatAmount
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
IN_WORLD_SCALE
public static final org.joml.Matrix4f IN_WORLD_SCALE
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
formatAmount
- Specified by:
formatAmount
in interfaceResourceRendering
-
getDisplayName
- Specified by:
getDisplayName
in interfaceResourceRendering
-
getTooltip
- Specified by:
getTooltip
in interfaceResourceRendering
-
render
public void render(ResourceKey resource, net.minecraft.client.gui.GuiGraphics graphics, int x, int y) - Specified by:
render
in interfaceResourceRendering
-
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 interfaceResourceRendering
-