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 TypeMethodDescriptionnet.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.LevelBasedValueRetrieves 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
HolderSetcontaining the allowedFluids.
-
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
LevelBasedValuecalculating the speed retention factor.
-