Interface EntityFluidExtension


public interface EntityFluidExtension
Entity extensions related to fluid interaction handling.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    isInFluid(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> type)
    Checks if entity is in a specific fluid type.
  • Method Details

    • isInFluid

      default boolean isInFluid(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> type)
      Checks if entity is in a specific fluid type. The fluid must be fist registered within the EntityFluidInteractionRegistry.
      Parameters:
      type - tag representing the fluid type
      Returns:
      true if entity is in specific fluid, false otherwise