Class PotionBuilder<P>
java.lang.Object
com.tterrag.registrate.builders.AbstractBuilder<net.minecraft.world.item.alchemy.Potion,net.minecraft.world.item.alchemy.Potion,P,PotionBuilder<P>>
com.petrolpark.core.registrate.builder.PotionBuilder<P>
- All Implemented Interfaces:
com.tterrag.registrate.builders.Builder<net.minecraft.world.item.alchemy.Potion,,net.minecraft.world.item.alchemy.Potion, P, PotionBuilder<P>> com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.item.alchemy.Potion,,net.minecraft.world.item.alchemy.Potion>> Supplier<com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.item.alchemy.Potion,net.minecraft.world.item.alchemy.Potion>>
- Direct Known Subclasses:
SharedPotionBuilder
public class PotionBuilder<P>
extends com.tterrag.registrate.builders.AbstractBuilder<net.minecraft.world.item.alchemy.Potion,net.minecraft.world.item.alchemy.Potion,P,PotionBuilder<P>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<MobEffectBuilder.MobEffectInstanceBuilder> protected final PetrolparkRegistrateprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPotionBuilder(PetrolparkRegistrate owner, P parent, String name, String potionName, com.tterrag.registrate.builders.BuilderCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionstatic final <P> PotionBuilder<P> create(PetrolparkRegistrate owner, P parent, String name, String potionName, com.tterrag.registrate.builders.BuilderCallback callback) protected @NonnullType net.minecraft.world.item.alchemy.PotiondefaultLong(float durationMultiplier) effect(MobEffectBuilder.MobEffectInstanceBuilder... instanceBuilders) effect(Stream<MobEffectBuilder.MobEffectInstanceBuilder> instanceBuilders) lang(com.tterrag.registrate.util.nullness.NonNullBiFunction<com.tterrag.registrate.providers.RegistrateLangProvider, String, String> localizedNameProvider) recipe(org.apache.commons.lang3.function.TriConsumer<net.minecraft.core.RegistryAccess, net.minecraft.world.item.alchemy.PotionBrewing.Builder, com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.item.alchemy.Potion, net.minecraft.world.item.alchemy.Potion>> consumer) simpleRecipe(net.minecraft.world.level.ItemLike item) tag(net.minecraft.tags.TagKey<net.minecraft.world.item.alchemy.Potion>... tags) Methods inherited from class com.tterrag.registrate.builders.AbstractBuilder
asOptional, asSupplier, asTag, createEntryWrapper, getCallback, getName, getOwner, getParent, getRegistryKey, lang, lang, register, removeTag, tagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tterrag.registrate.builders.Builder
addMiscData, build, dataMap, dataMap, get, getEntry, onRegister, onRegisterAfter, setData, transformMethods inherited from interface com.tterrag.registrate.util.nullness.NonNullSupplier
lazy
-
Field Details
-
petrolparkOwner
-
potionName
-
effectInstanceBuilders
-
-
Constructor Details
-
PotionBuilder
protected PotionBuilder(PetrolparkRegistrate owner, P parent, String name, String potionName, com.tterrag.registrate.builders.BuilderCallback callback)
-
-
Method Details
-
create
public static final <P> PotionBuilder<P> create(PetrolparkRegistrate owner, P parent, String name, String potionName, com.tterrag.registrate.builders.BuilderCallback callback) -
defaultLang
-
lang
-
lang
public PotionBuilder<P> lang(com.tterrag.registrate.util.nullness.NonNullBiFunction<com.tterrag.registrate.providers.RegistrateLangProvider, String, String> localizedNameProvider) -
effect
-
effect
-
tag
public PotionBuilder<P> tag(net.minecraft.tags.TagKey<net.minecraft.world.item.alchemy.Potion>... tags) -
simpleRecipe
-
recipe
public PotionBuilder<P> recipe(org.apache.commons.lang3.function.TriConsumer<net.minecraft.core.RegistryAccess, net.minecraft.world.item.alchemy.PotionBrewing.Builder, com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.item.alchemy.Potion, net.minecraft.world.item.alchemy.Potion>> consumer) -
potion
-
defaultLong
-
defaultStrong
-
createEntry
@NonnullType protected @NonnullType net.minecraft.world.item.alchemy.Potion createEntry()- Specified by:
createEntryin classcom.tterrag.registrate.builders.AbstractBuilder<net.minecraft.world.item.alchemy.Potion,net.minecraft.world.item.alchemy.Potion, P, PotionBuilder<P>>
-