public class FirstPersonRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
equippedProgressMainHand |
private float |
equippedProgressOffHand |
private ItemRenderer |
itemRenderer |
private ItemStack |
itemStackMainHand |
private ItemStack |
itemStackOffHand |
private static RenderType |
MAP_BACKGROUND |
private static RenderType |
MAP_BACKGROUND_CHECKERBOARD |
private Minecraft |
mc |
private float |
prevEquippedProgressMainHand |
private float |
prevEquippedProgressOffHand |
private EntityRendererManager |
renderManager |
Constructor and Description |
---|
FirstPersonRenderer(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
private float |
getMapAngleFromPitch(float pitch) |
private void |
renderArm(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
HandSide side) |
private void |
renderArmFirstPerson(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
float equippedProgress,
float swingProgress,
HandSide side) |
private void |
renderItemInFirstPerson(AbstractClientPlayerEntity player,
float partialTicks,
float pitch,
Hand handIn,
float swingProgress,
ItemStack stack,
float equippedProgress,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn) |
void |
renderItemInFirstPerson(float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer.Impl bufferIn,
ClientPlayerEntity playerEntityIn,
int combinedLightIn) |
void |
renderItemSide(LivingEntity livingEntityIn,
ItemStack itemStackIn,
ItemCameraTransforms.TransformType transformTypeIn,
boolean leftHand,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn) |
private void |
renderMapFirstPerson(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
float pitch,
float equippedProgress,
float swingProgress) |
private void |
renderMapFirstPerson(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
ItemStack stack) |
private void |
renderMapFirstPersonSide(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
float equippedProgress,
HandSide handIn,
float swingProgress,
ItemStack stack) |
void |
resetEquippedProgress(Hand hand) |
void |
tick() |
private void |
transformEatFirstPerson(MatrixStack matrixStackIn,
float partialTicks,
HandSide handIn,
ItemStack stack) |
private void |
transformFirstPerson(MatrixStack matrixStackIn,
HandSide handIn,
float swingProgress) |
private void |
transformSideFirstPerson(MatrixStack matrixStackIn,
HandSide handIn,
float equippedProg) |
private static final RenderType MAP_BACKGROUND
private static final RenderType MAP_BACKGROUND_CHECKERBOARD
private final Minecraft mc
private ItemStack itemStackMainHand
private ItemStack itemStackOffHand
private float equippedProgressMainHand
private float prevEquippedProgressMainHand
private float equippedProgressOffHand
private float prevEquippedProgressOffHand
private final EntityRendererManager renderManager
private final ItemRenderer itemRenderer
public FirstPersonRenderer(Minecraft mcIn)
public void renderItemSide(LivingEntity livingEntityIn, ItemStack itemStackIn, ItemCameraTransforms.TransformType transformTypeIn, boolean leftHand, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn)
private float getMapAngleFromPitch(float pitch)
private void renderArm(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, HandSide side)
private void renderMapFirstPersonSide(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, float equippedProgress, HandSide handIn, float swingProgress, ItemStack stack)
private void renderMapFirstPerson(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, float pitch, float equippedProgress, float swingProgress)
private void renderMapFirstPerson(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, ItemStack stack)
private void renderArmFirstPerson(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, float equippedProgress, float swingProgress, HandSide side)
private void transformEatFirstPerson(MatrixStack matrixStackIn, float partialTicks, HandSide handIn, ItemStack stack)
private void transformFirstPerson(MatrixStack matrixStackIn, HandSide handIn, float swingProgress)
private void transformSideFirstPerson(MatrixStack matrixStackIn, HandSide handIn, float equippedProg)
public void renderItemInFirstPerson(float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer.Impl bufferIn, ClientPlayerEntity playerEntityIn, int combinedLightIn)
private void renderItemInFirstPerson(AbstractClientPlayerEntity player, float partialTicks, float pitch, Hand handIn, float swingProgress, ItemStack stack, float equippedProgress, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn)
public void tick()
public void resetEquippedProgress(Hand hand)