Class FishingHookRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<FishingHook>
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, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static float
fraction
(int numerator, int denominator) private Vec3
getPlayerHandPos
(Player player, float p_340872_, float partialTick) getTextureLocation
(FishingHook entity) Returns the location of an entity's texture.void
render
(FishingHook entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) private static void
stringVertex
(float x, float y, float z, VertexConsumer consumer, PoseStack.Pose pose, float stringFraction, float nextStringFraction) private static void
vertex
(VertexConsumer consumer, PoseStack.Pose pose, int packedLight, float x, int y, int u, int v) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
TEXTURE_LOCATION
-
RENDER_TYPE
-
VIEW_BOBBING_SCALE
private static final double VIEW_BOBBING_SCALE- See Also:
-
-
Constructor Details
-
FishingHookRenderer
-
-
Method Details
-
render
public void render(FishingHook entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) - Overrides:
render
in classEntityRenderer<FishingHook>
-
getPlayerHandPos
-
fraction
private static float fraction(int numerator, int denominator) -
vertex
private static void vertex(VertexConsumer consumer, PoseStack.Pose pose, int packedLight, float x, int y, int u, int v) -
stringVertex
private static void stringVertex(float x, float y, float z, VertexConsumer consumer, PoseStack.Pose pose, float stringFraction, float nextStringFraction) -
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocation
in classEntityRenderer<FishingHook>
-