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, float partialticks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.level.block.Block block) static voidapplyEntityTransformations(net.minecraft.world.entity.player.Player player, float partialticks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.entity.Entity entity) static voidapplyGeneralTransformations(net.minecraft.world.entity.player.Player player, float partialticks, 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.client.resources.model.BakedModelgetRenderBlock(net.minecraft.world.entity.player.Player player) static 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.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 voidrenderBakedModel(net.minecraft.world.item.ItemStack stack, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light, net.minecraft.client.resources.model.BakedModel model)
-
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, float partialticks, com.mojang.blaze3d.vertex.PoseStack matrix) -
applyBlockTransformations
public static void applyBlockTransformations(net.minecraft.world.entity.player.Player player, float partialticks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.world.level.block.Block block) -
applyEntityTransformations
public static void applyEntityTransformations(net.minecraft.world.entity.player.Player player, float partialticks, 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) -
renderBakedModel
public static void renderBakedModel(net.minecraft.world.item.ItemStack stack, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int light, net.minecraft.client.resources.model.BakedModel model) -
getRenderState
public static net.minecraft.world.level.block.state.BlockState getRenderState(net.minecraft.world.entity.player.Player player) -
getRenderBlock
public static net.minecraft.client.resources.model.BakedModel getRenderBlock(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)
-