Class FishingHookRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<FishingHook,FishingHookRenderState>
net.minecraft.client.renderer.entity.FishingHookRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final RenderTypeprivate static final ResourceLocationprivate static final doubleFields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, LEASH_WIDTH, NAMETAG_SCALE, shadowRadius, shadowStrength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaffectedByCulling(FishingHook pDisplay) voidextractRenderState(FishingHook pEntity, FishingHookRenderState pReusedState, float pPartialTick) private static floatfraction(int pNumerator, int pDenominator) static HumanoidArmgetHoldingArm(Player pPlayer) private Vec3getPlayerHandPos(Player pPlayer, float pHandAngle, float pPartialTick) voidrender(FishingHookRenderState pRenderState, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) booleanshouldRender(FishingHook pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) private static voidstringVertex(float pX, float pY, float pZ, VertexConsumer pConsumer, PoseStack.Pose pPose, float pStringFraction, float pNextStringFraction) private static voidvertex(VertexConsumer pConsumer, PoseStack.Pose pPose, int pPackedLight, float pX, int pY, int pU, int pV) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
createRenderState, extractAdditionalHitboxes, getBlockLightLevel, getBoundingBoxForCulling, getFont, getNameTag, getPackedLightCoords, getRenderOffset, getShadowRadius, getShadowStrength, getSkyLightLevel, renderNameTag, shouldShowName
-
Field Details
-
TEXTURE_LOCATION
-
RENDER_TYPE
-
VIEW_BOBBING_SCALE
private static final double VIEW_BOBBING_SCALE- See Also:
-
-
Constructor Details
-
FishingHookRenderer
-
-
Method Details
-
shouldRender
public boolean shouldRender(FishingHook pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) - Overrides:
shouldRenderin classEntityRenderer<FishingHook,FishingHookRenderState>
-
render
public void render(FishingHookRenderState pRenderState, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) - Overrides:
renderin classEntityRenderer<FishingHook,FishingHookRenderState>
-
getHoldingArm
-
getPlayerHandPos
-
fraction
private static float fraction(int pNumerator, int pDenominator) -
vertex
private static void vertex(VertexConsumer pConsumer, PoseStack.Pose pPose, int pPackedLight, float pX, int pY, int pU, int pV) -
stringVertex
private static void stringVertex(float pX, float pY, float pZ, VertexConsumer pConsumer, PoseStack.Pose pPose, float pStringFraction, float pNextStringFraction) -
createRenderState
- Specified by:
createRenderStatein classEntityRenderer<FishingHook,FishingHookRenderState>
-
extractRenderState
public void extractRenderState(FishingHook pEntity, FishingHookRenderState pReusedState, float pPartialTick) - Overrides:
extractRenderStatein classEntityRenderer<FishingHook,FishingHookRenderState>
-
affectedByCulling
- Overrides:
affectedByCullingin classEntityRenderer<FishingHook,FishingHookRenderState>
-