Class PotionToFluidEvent

java.lang.Object
net.minecraftforge.eventbus.internal.MutableEventInternals
net.minecraftforge.eventbus.api.event.MutableEvent
com.stereowalker.unionlib.event.potionfluid.PotionToFluidEvent
All Implemented Interfaces:
net.minecraftforge.eventbus.internal.Event

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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.eventbus.api.bus.EventBus<PotionToFluidEvent>
     

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

    isMonitoring
  • Constructor Summary

    Constructors
    Constructor
    Description
    PotionToFluidEvent(net.minecraft.core.Holder<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.core.Holder<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 Object

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

    • BUS

      public static final net.minecraftforge.eventbus.api.bus.EventBus<PotionToFluidEvent> BUS
  • Constructor Details

    • PotionToFluidEvent

      public PotionToFluidEvent(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> potion)
  • Method Details

    • getPotion

      public net.minecraft.core.Holder<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)