Interface FluidWalkerDefinition

All Known Implementing Classes:
FluidWalkerEffect

public interface FluidWalkerDefinition
Contract defining the operational parameters for a fluid-walking enchantment effect.

Queried during block collision evaluation in FluidWalkerMixin and movement speed factor calculation in PassiveEffectsMixin to allow entities to walk across fluid surfaces as if solid.

  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.HolderSet<net.minecraft.world.level.material.Fluid>
    Retrieves the set of fluids that the entity can walk across as a solid surface.
    net.minecraft.world.item.enchantment.LevelBasedValue
    Retrieves the movement speed retention multiplier applied to the entity while walking atop allowed fluids.
  • Method Details

    • allowedFluids

      net.minecraft.core.HolderSet<net.minecraft.world.level.material.Fluid> allowedFluids()
      Retrieves the set of fluids that the entity can walk across as a solid surface.
      Returns:
      The HolderSet containing the allowed Fluids.
    • speedRetention

      net.minecraft.world.item.enchantment.LevelBasedValue speedRetention()
      Retrieves the movement speed retention multiplier applied to the entity while walking atop allowed fluids.
      Returns:
      The LevelBasedValue calculating the speed retention factor.