Package com.simibubi.create.api.effect
Interface OpenPipeEffectHandler
- All Known Implementing Classes:
LavaEffectHandler,MilkEffectHandler,PotionEffectHandler,TeaEffectHandler,WaterEffectHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for custom behavior for fluids spilling out of open pipes. Examples:
- Potions: applying potion effects
- Milk: clearing effects
- Water: extinguishing fire
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleRegistry<net.minecraft.world.level.material.Fluid, OpenPipeEffectHandler> -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(net.minecraft.world.level.Level level, net.minecraft.world.phys.AABB area, net.neoforged.neoforge.fluids.FluidStack fluid)
-
Field Details
-
REGISTRY
static final SimpleRegistry<net.minecraft.world.level.material.Fluid,OpenPipeEffectHandler> REGISTRY
-
-
Method Details
-
apply
void apply(net.minecraft.world.level.Level level, net.minecraft.world.phys.AABB area, net.neoforged.neoforge.fluids.FluidStack fluid) - Parameters:
area- the area to apply effects influid- the fluid in the pipe. Do not modify, it will do nothing
-