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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.eventbus.api.bus.EventBus<PotionToFluidEvent> Fields inherited from class net.minecraftforge.eventbus.internal.MutableEventInternals
isMonitoring -
Constructor Summary
ConstructorsConstructorDescriptionPotionToFluidEvent(net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> potion) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.material.Fluidnet.minecraft.world.level.material.FluidgetFluid()net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> voidsetFlowingFluid(net.minecraft.world.level.material.Fluid flowingFluid) voidsetFluid(net.minecraft.world.level.material.Fluid fluid)
-
Field Details
-
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)
-