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 RenderType
private static final ResourceLocation
private static final double
Fields 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 boolean
affectedByCulling
(FishingHook pDisplay) void
extractRenderState
(FishingHook pEntity, FishingHookRenderState pReusedState, float pPartialTick) private static float
fraction
(int pNumerator, int pDenominator) static HumanoidArm
getHoldingArm
(Player pPlayer) private Vec3
getPlayerHandPos
(Player pPlayer, float pHandAngle, float pPartialTick) void
render
(FishingHookRenderState pRenderState, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) boolean
shouldRender
(FishingHook pLivingEntity, Frustum pCamera, double pCamX, double pCamY, double pCamZ) private static void
stringVertex
(float pX, float pY, float pZ, VertexConsumer pConsumer, PoseStack.Pose pPose, float pStringFraction, float pNextStringFraction) private static void
vertex
(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:
shouldRender
in classEntityRenderer<FishingHook,
FishingHookRenderState>
-
render
public void render(FishingHookRenderState pRenderState, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) - Overrides:
render
in 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:
createRenderState
in classEntityRenderer<FishingHook,
FishingHookRenderState>
-
extractRenderState
public void extractRenderState(FishingHook pEntity, FishingHookRenderState pReusedState, float pPartialTick) - Overrides:
extractRenderState
in classEntityRenderer<FishingHook,
FishingHookRenderState>
-
affectedByCulling
- Overrides:
affectedByCulling
in classEntityRenderer<FishingHook,
FishingHookRenderState>
-