Class CanWalkOnFluidEvent

java.lang.Object
meteordevelopment.meteorclient.events.entity.player.CanWalkOnFluidEvent

public class CanWalkOnFluidEvent extends Object
As of writing, using any method that gets the players pose within this event will cause a crash.

Getting the pose calls EntityMixin.modifyGetPose(Pose), which calls Player.canPlayerFitWithinBlocksAndEntitiesWhen(Pose), which calculates whether there is enough space to fit your bounding box if you change into that pose. This method ends up calling LivingEntity.canStandOnFluid(FluidState), causing this event to fire again and leading to a stack overflow crash. Introduced in this pull request

  • Field Details

    • fluidState

      public net.minecraft.world.level.material.FluidState fluidState
    • walkOnFluid

      public boolean walkOnFluid
  • Constructor Details

    • CanWalkOnFluidEvent

      public CanWalkOnFluidEvent()
  • Method Details

    • get

      public static CanWalkOnFluidEvent get(net.minecraft.world.level.material.FluidState fluid)