implements Consumable, TooltipAppender
| net.minecraft.world.item.alchemy.PotionContents | |
| net.minecraft.class_1844 | |
| net.minecraft.component.type.PotionContentsComponent |
Field summary
| Modifier and Type | Field | ||||||
|---|---|---|---|---|---|---|---|
| private final Optional<RegistryEntry<Potion>> |
|
||||||
| private final Optional<Integer> |
|
||||||
| private final List<StatusEffectInstance> |
|
||||||
| private final Optional<String> |
|
||||||
| public static final PotionContentsComponent |
|
||||||
| private static final Text |
|
||||||
| public static final int |
|
||||||
| private static final com.mojang.serialization.Codec<PotionContentsComponent> |
|
||||||
| public static final com.mojang.serialization.Codec<PotionContentsComponent> |
|
||||||
| public static final PacketCodec<RegistryByteBuf, PotionContentsComponent> |
|
Constructor summary
| Modifier | Constructor |
|---|---|
| public | (RegistryEntry<Potion> potion) |
| public | (Optional<RegistryEntry<Potion>> potion, Optional<Integer> customColor, List<StatusEffectInstance> customEffects, Optional<String> customName) |
Method summary
| Modifier and Type | Method | ||||||
|---|---|---|---|---|---|---|---|
| public static ItemStack |
|
||||||
| public boolean |
|
||||||
| public Iterable<StatusEffectInstance> |
|
||||||
| public void |
|
||||||
| public PotionContentsComponent |
|
||||||
| public PotionContentsComponent |
|
||||||
| public int |
|
||||||
| public int |
|
||||||
| public Text |
|
||||||
| public static OptionalInt |
|
||||||
| public boolean |
|
||||||
| public List<StatusEffectInstance> |
|
||||||
| public void |
|
||||||
| public static void |
|
||||||
| public static MutableText |
|
||||||
| public void |
|
||||||
| public void |
|
||||||
| public Optional<RegistryEntry<Potion>> |
|
||||||
| public Optional<Integer> |
|
||||||
| public Optional<String> |
|
||||||
| private static void |
|
||||||
| private static void |
|
||||||
| private Optional |
|
||||||
| private static String |
|
||||||
| private static com.mojang.datafixers.kinds.App |
|