Class FluidToPotionEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.stereowalker.unionlib.event.potionfluid.FluidToPotionEvent
- Direct Known Subclasses:
FluidToPotionEvent.FromStateEvent
public class FluidToPotionEvent
extends net.minecraftforge.eventbus.api.Event
This event allows the mod firing it to ask other mods using the event what potion maps to what fluids.
This should make it significantly easier for mods with custom fluids
for their potions to communicate such to mod authors that need the information
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
potion
protected net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> potion
-
-
Constructor Details
-
FluidToPotionEvent
public FluidToPotionEvent()
-
-
Method Details
-
getPotion
public net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> getPotion() -
setPotion
public void setPotion(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> potion)
-