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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion>
     
    void
    setPotion(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> potion)
     

    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
  • 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)