net.minecraft.util.Rarity Java Examples

The following examples show how to use net.minecraft.util.Rarity. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenericLiquidCanister.java    From Galacticraft-Rewoven with MIT License 4 votes vote down vote up
@Override
@Environment(EnvType.CLIENT)
public Rarity getRarity(ItemStack par1ItemStack) {
    return Rarity.RARE;
}
 
Example #2
Source File: GuiItem.java    From LibGui with MIT License 4 votes vote down vote up
public GuiItem() {
	super(new Item.Settings().group(ItemGroup.TOOLS).rarity(Rarity.EPIC));
}
 
Example #3
Source File: EnumHacks.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
public static Rarity createRarity(String name, Formatting formatting) {
	return constructAndAdd(Rarity.class, ordinal -> RarityAccessor.invokeConstructor(name, ordinal, formatting));
}
 
Example #4
Source File: MixinRarity.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void patchwork_setValues(Rarity[] values) {
	field_8905 = values;
}
 
Example #5
Source File: RarityAccessor.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Invoker("<init>")
static Rarity invokeConstructor(String name, int ordinal, Formatting formatting) {
	throw new IllegalStateException("Mixin did not transform accessor! Something is very wrong!");
}