Package net.minecraft.potion
Class Potion
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Potion>
-
- net.minecraft.potion.Potion
-
- All Implemented Interfaces:
IForgeRegistryEntry<Potion>
public class Potion extends ForgeRegistryEntry<Potion>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<EffectInstance>
effects
private java.lang.String
name
private ReverseTagWrapper<Potion>
reverseTags
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description Potion(java.lang.String p_i46740_1_, EffectInstance... p_i46740_2_)
Potion(EffectInstance... p_i46739_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Potion
byName(java.lang.String p_185168_0_)
java.util.List<EffectInstance>
getEffects()
java.lang.String
getName(java.lang.String p_185174_1_)
java.util.Set<ResourceLocation>
getTags()
boolean
hasInstantEffects()
boolean
isIn(ITag<Potion> tag)
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
reverseTags
private final ReverseTagWrapper<Potion> reverseTags
-
name
private final java.lang.String name
-
effects
private final com.google.common.collect.ImmutableList<EffectInstance> effects
-
-
Constructor Detail
-
Potion
public Potion(EffectInstance... p_i46739_1_)
-
Potion
public Potion(@Nullable java.lang.String p_i46740_1_, EffectInstance... p_i46740_2_)
-
-
Method Detail
-
byName
public static Potion byName(java.lang.String p_185168_0_)
-
getTags
public java.util.Set<ResourceLocation> getTags()
-
getName
public java.lang.String getName(java.lang.String p_185174_1_)
-
getEffects
public java.util.List<EffectInstance> getEffects()
-
hasInstantEffects
public boolean hasInstantEffects()
-
-