Class FlipHandler

java.lang.Object
com.mrbysco.doaflip.client.FlipHandler

public class FlipHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canFlip(net.minecraft.world.entity.LivingEntity livingEntity)
     
    static void
    doFlipping(net.minecraft.client.renderer.entity.state.LivingEntityRenderState renderState, com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks)
    Handles the flip animation for a living entity
    static double
    getDistanceFromGround(net.minecraft.world.entity.LivingEntity livingEntity)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlipHandler

      public FlipHandler()
  • Method Details

    • doFlipping

      public static void doFlipping(net.minecraft.client.renderer.entity.state.LivingEntityRenderState renderState, com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks)
      Handles the flip animation for a living entity
      Parameters:
      renderState - The entity to potentially flip
      poseStack - The PoseStack to apply the flip rotation to
      partialTicks - The partial ticks for interpolation
    • getDistanceFromGround

      public static double getDistanceFromGround(net.minecraft.world.entity.LivingEntity livingEntity)
    • canFlip

      public static boolean canFlip(net.minecraft.world.entity.LivingEntity livingEntity)