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 RenderTypeprivate static final ResourceLocationprivate static final doubleFields 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 floatfraction(int numerator, int denominator) private Vec3getPlayerHandPos(Player player, float p_340872_, float partialTick) getTextureLocation(FishingHook entity) Returns the location of an entity's texture.voidrender(FishingHook entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) private static voidstringVertex(float x, float y, float z, VertexConsumer consumer, PoseStack.Pose pose, float stringFraction, float nextStringFraction) private static voidvertex(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:
renderin 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:
getTextureLocationin classEntityRenderer<FishingHook>
-