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
    Constructor
    Description
    PotionToFluidEvent(net.minecraft.world.item.alchemy.Potion potion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.material.Fluid
     
    net.minecraft.world.level.material.Fluid
     
    net.minecraft.world.item.alchemy.Potion
     
    void
    setFlowingFluid(net.minecraft.world.level.material.Fluid flowingFluid)
     
    void
    setFluid(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)