Class FluidToPotionEvent

java.lang.Object
net.minecraftforge.eventbus.internal.MutableEventInternals
net.minecraftforge.eventbus.api.event.MutableEvent
com.stereowalker.unionlib.event.potionfluid.FluidToPotionEvent
All Implemented Interfaces:
net.minecraftforge.eventbus.internal.Event
Direct Known Subclasses:
FluidToPotionEvent.FromStateEvent

public class FluidToPotionEvent extends net.minecraftforge.eventbus.api.event.MutableEvent
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 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.eventbus.api.bus.EventBus<FluidToPotionEvent>
     
    protected net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion>
     

    Fields inherited from class net.minecraftforge.eventbus.internal.MutableEventInternals

    isMonitoring
  • 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 Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BUS

      public static final net.minecraftforge.eventbus.api.bus.EventBus<FluidToPotionEvent> BUS
    • 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)