public class PotionType extends IForgeRegistryEntry.Impl<PotionType>
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
baseName |
private com.google.common.collect.ImmutableList<PotionEffect> |
effects |
private static ResourceLocation |
EMPTY
Deprecated.
|
private static int |
nextPotionTypeId |
static RegistryNamespacedDefaultedByKey<ResourceLocation,PotionType> |
REGISTRY |
delegate
Constructor and Description |
---|
PotionType(PotionEffect... p_i46739_1_) |
PotionType(java.lang.String p_i46740_1_,
PotionEffect... p_i46740_2_) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PotionEffect> |
getEffects() |
java.lang.String |
getNamePrefixed(java.lang.String p_185174_1_) |
static PotionType |
getPotionTypeForName(java.lang.String p_185168_0_) |
boolean |
hasInstantEffect() |
protected static void |
registerPotionType(java.lang.String p_185173_0_,
PotionType p_185173_1_) |
static void |
registerPotionTypes() |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
@Deprecated private static final ResourceLocation EMPTY
public static final RegistryNamespacedDefaultedByKey<ResourceLocation,PotionType> REGISTRY
private static int nextPotionTypeId
private final java.lang.String baseName
private final com.google.common.collect.ImmutableList<PotionEffect> effects
public PotionType(PotionEffect... p_i46739_1_)
public PotionType(@Nullable java.lang.String p_i46740_1_, PotionEffect... p_i46740_2_)
@Nullable public static PotionType getPotionTypeForName(java.lang.String p_185168_0_)
public java.lang.String getNamePrefixed(java.lang.String p_185174_1_)
public java.util.List<PotionEffect> getEffects()
public static void registerPotionTypes()
protected static void registerPotionType(java.lang.String p_185173_0_, PotionType p_185173_1_)
public boolean hasInstantEffect()