Package tschipp.carryon.client.render
Class CarryRenderHelper
java.lang.Object
tschipp.carryon.client.render.CarryRenderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyBlockTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.level.block.Block block) static voidapplyEntityTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.entity.Entity entity) static voidapplyGeneralTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix) static booleandoSneakCheck(net.minecraft.world.entity.player.Player player) static org.joml.QuaternionfgetExactBodyRotation(net.minecraft.world.entity.LivingEntity entity, float partialticks) static floatgetExactBodyRotationDegrees(net.minecraft.world.entity.LivingEntity entity, float partialticks) static net.minecraft.world.phys.Vec3getExactPos(net.minecraft.world.entity.Entity entity, float partialticks) static intstatic net.minecraft.world.entity.EntitygetRenderEntity(net.minecraft.world.entity.player.Player player) static floatgetRenderHeight(net.minecraft.world.entity.player.Player player) static net.minecraft.world.item.ItemStackgetRenderItemStack(net.minecraft.world.entity.player.Player player) static net.minecraft.world.level.block.state.BlockStategetRenderState(net.minecraft.world.entity.player.Player player) static floatgetRenderWidth(net.minecraft.world.entity.player.Player player) static booleanisChest(net.minecraft.world.level.block.Block block) static voidperformScriptTransformation(com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnScript script) static com.mojang.blaze3d.vertex.PoseStacksetupBlockTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnData carry, boolean firstPerson) static voidsetupEntityTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnData carry, boolean firstPerson)
-
Constructor Details
-
CarryRenderHelper
public CarryRenderHelper()
-
-
Method Details
-
getExactPos
public static net.minecraft.world.phys.Vec3 getExactPos(net.minecraft.world.entity.Entity entity, float partialticks) -
getExactBodyRotationDegrees
public static float getExactBodyRotationDegrees(net.minecraft.world.entity.LivingEntity entity, float partialticks) -
getExactBodyRotation
public static org.joml.Quaternionf getExactBodyRotation(net.minecraft.world.entity.LivingEntity entity, float partialticks) -
applyGeneralTransformations
public static void applyGeneralTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix) -
setupBlockTransformations
public static com.mojang.blaze3d.vertex.PoseStack setupBlockTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnData carry, boolean firstPerson) -
applyBlockTransformations
public static void applyBlockTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.level.block.Block block) -
setupEntityTransformations
public static void setupEntityTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnData carry, boolean firstPerson) -
applyEntityTransformations
public static void applyEntityTransformations(net.minecraft.world.entity.player.Player player, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.entity.Entity entity) -
performScriptTransformation
public static void performScriptTransformation(com.mojang.blaze3d.vertex.PoseStack matrix, CarryOnScript script) -
getRenderItemStack
public static net.minecraft.world.item.ItemStack getRenderItemStack(net.minecraft.world.entity.player.Player player) -
getRenderState
public static net.minecraft.world.level.block.state.BlockState getRenderState(net.minecraft.world.entity.player.Player player) -
getRenderEntity
public static net.minecraft.world.entity.Entity getRenderEntity(net.minecraft.world.entity.player.Player player) -
getRenderWidth
public static float getRenderWidth(net.minecraft.world.entity.player.Player player) -
getRenderHeight
public static float getRenderHeight(net.minecraft.world.entity.player.Player player) -
getPerspective
public static int getPerspective() -
doSneakCheck
public static boolean doSneakCheck(net.minecraft.world.entity.player.Player player) -
isChest
public static boolean isChest(net.minecraft.world.level.block.Block block)
-