Interface EntityFluidExtension
public interface EntityFluidExtension
Entity extensions related to fluid interaction handling.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisInFluid(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 theEntityFluidInteractionRegistry.- Parameters:
type- tag representing the fluid type- Returns:
- true if entity is in specific fluid, false otherwise
-