public enum ModdedWrenchUtils extends java.lang.Enum<ModdedWrenchUtils>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static ModdedWrenchUtils |
getInstance() |
boolean |
isModdedWrench(net.minecraft.item.ItemStack stack)
Check if the given item is a known 3rd party modded wrench (does not include our own Pneumatic Wrench)
|
boolean |
isWrench(net.minecraft.item.ItemStack stack)
Check if the given item is *any* known wrench item, including our own Pneumatic Wrench
|
void |
registerThirdPartyWrenches() |
static ModdedWrenchUtils |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModdedWrenchUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModdedWrenchUtils INSTANCE
public static ModdedWrenchUtils[] values()
for (ModdedWrenchUtils c : ModdedWrenchUtils.values()) System.out.println(c);
public static ModdedWrenchUtils valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ModdedWrenchUtils getInstance()
public void registerThirdPartyWrenches()
public boolean isModdedWrench(@Nonnull
net.minecraft.item.ItemStack stack)
stack - the item to checkpublic boolean isWrench(@Nonnull
net.minecraft.item.ItemStack stack)
stack - the item to check