public enum RadiationSourceCheck extends java.lang.Enum<RadiationSourceCheck>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRadiation(net.minecraft.util.DamageSource source) |
void |
registerRadiationSource(java.util.function.Predicate<net.minecraft.util.DamageSource> predicate) |
static RadiationSourceCheck |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RadiationSourceCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RadiationSourceCheck INSTANCE
public static RadiationSourceCheck[] values()
for (RadiationSourceCheck c : RadiationSourceCheck.values()) System.out.println(c);
public static RadiationSourceCheck 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 void registerRadiationSource(java.util.function.Predicate<net.minecraft.util.DamageSource> predicate)
public boolean isRadiation(net.minecraft.util.DamageSource source)