Class FlipHandler
java.lang.Object
com.mrbysco.doaflip.client.FlipHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanFlip(net.minecraft.world.entity.LivingEntity livingEntity) static voiddoFlipping(net.minecraft.client.renderer.entity.state.LivingEntityRenderState renderState, com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks) Handles the flip animation for a living entitystatic doublegetDistanceFromGround(net.minecraft.world.entity.LivingEntity livingEntity)
-
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 flipposeStack- The PoseStack to apply the flip rotation topartialTicks- 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)
-