Uses of Enum Class
net.minecraft.world.item.Rarity
Package
Description
-
Uses of Rarity in net.minecraft.core.component
-
Uses of Rarity in net.minecraft.world.item
Modifier and TypeFieldDescriptionstatic final IntFunction
<Rarity> Rarity.BY_ID
Rarity.BY_NAME
static final com.mojang.serialization.Codec
<Rarity> Rarity.CODEC
static final StreamCodec
<io.netty.buffer.ByteBuf, Rarity> Rarity.STREAM_CODEC
Modifier and TypeMethodDescriptionstatic Rarity
static Rarity
Rarity.create
(String name, ResourceLocation serializedName, UnaryOperator<Style> styleModifier) static Rarity
Rarity.create
(String name, ResourceLocation serializedName, ChatFormatting color) ItemStack.getRarity()
static Rarity
Returns the enum constant of this class with the specified name.static Rarity[]
Rarity.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Rarity in net.neoforged.neoforge.fluids
Modifier and TypeFieldDescriptionprivate Rarity
FluidType.Properties.rarity
private final Rarity
FluidType.rarity
Modifier and TypeMethodDescriptionFluidType.getRarity()
Returns the rarity of the fluid.FluidType.getRarity
(FluidStack stack) Returns the rarity of the fluid.Modifier and TypeMethodDescriptionSets the rarity of the fluid.