Class PotionToFluidEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.stereowalker.unionlib.event.potionfluid.PotionToFluidEvent
public class PotionToFluidEvent
extends net.minecraftforge.eventbus.api.Event
This event allows the mod firing it to ask other mods using the event what fluids maps to what potions.
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 classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.material.Fluidnet.minecraft.world.level.material.FluidgetFluid()net.minecraft.world.item.alchemy.PotionvoidsetFlowingFluid(net.minecraft.world.level.material.Fluid flowingFluid) voidsetFluid(net.minecraft.world.level.material.Fluid fluid) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
PotionToFluidEvent
public PotionToFluidEvent(net.minecraft.world.item.alchemy.Potion potion)
-
-
Method Details
-
getPotion
public net.minecraft.world.item.alchemy.Potion getPotion() -
getFluid
public net.minecraft.world.level.material.Fluid getFluid() -
getFlowingFluid
public net.minecraft.world.level.material.Fluid getFlowingFluid() -
setFluid
public void setFluid(net.minecraft.world.level.material.Fluid fluid) -
setFlowingFluid
public void setFlowingFluid(net.minecraft.world.level.material.Fluid flowingFluid)
-