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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
-
Field Details
-
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)
-