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.

@FunctionalInterface public interface OpenPipeEffectHandler
Interface for custom behavior for fluids spilling out of open pipes. Examples:
  • Potions: applying potion effects
  • Milk: clearing effects
  • Water: extinguishing fire
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SimpleRegistry<net.minecraft.world.level.material.Fluid,OpenPipeEffectHandler>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(net.minecraft.world.level.Level level, net.minecraft.world.phys.AABB area, net.neoforged.neoforge.fluids.FluidStack fluid)
     
  • Field Details

  • 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 in
      fluid - the fluid in the pipe. Do not modify, it will do nothing