Class CustomBoatRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<CustomBoatEntity>
com.idark.valoria.client.render.entity.CustomBoatRenderer
public class CustomBoatRenderer
extends net.minecraft.client.renderer.entity.EntityRenderer<CustomBoatEntity>
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionCustomBoatRenderer
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, boolean chest) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.model.geom.ModelLayerLocation
static net.minecraft.client.model.geom.ModelLayerLocation
com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,
net.minecraft.client.model.BoatModel> net.minecraft.resources.ResourceLocation
void
render
(CustomBoatEntity boat, float boatYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.MultiBufferSource buffer, int light) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Constructor Details
-
CustomBoatRenderer
public CustomBoatRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, boolean chest)
-
-
Method Details
-
createBoatModelName
public static net.minecraft.client.model.geom.ModelLayerLocation createBoatModelName(CustomBoatEntity.Type type) -
createChestBoatModelName
public static net.minecraft.client.model.geom.ModelLayerLocation createChestBoatModelName(CustomBoatEntity.Type type) -
render
public void render(CustomBoatEntity boat, float boatYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.MultiBufferSource buffer, int light) - Overrides:
render
in classnet.minecraft.client.renderer.entity.EntityRenderer<CustomBoatEntity>
-
getTextureLocation
- Specified by:
getTextureLocation
in classnet.minecraft.client.renderer.entity.EntityRenderer<CustomBoatEntity>
-
getModelWithLocation
public com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.client.model.BoatModel> getModelWithLocation(CustomBoatEntity boat)
-