Class EntityRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderDispatcher
- All Implemented Interfaces:
PreparableReloadListener,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockRenderDispatcherprivate org.joml.Quaternionfprivate final EntityModelSetprivate final Fontprivate final ItemInHandRendererprivate final ItemRendererprivate Levelprivate static final floatfinal Optionsprivate Map<PlayerSkin.Model, EntityRenderer<? extends Player>> lists the various player skin types with their associated Renderer class instances.private Map<EntityType<?>, EntityRenderer<?>> private booleanprivate static final floatprivate static final RenderTypeprivate booleanfinal TextureManager -
Constructor Summary
ConstructorsConstructorDescriptionEntityRenderDispatcher(Minecraft pMinecraft, TextureManager pTextureManager, ItemRenderer pItemRenderer, BlockRenderDispatcher pBlockRenderDispatcher, Font pFont, Options pOptions, EntityModelSet pEntityModels) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.QuaternionfdoubledistanceToSqr(double pX, double pY, double pZ) doubledistanceToSqr(Entity pEntity) private static voidfireVertex(PoseStack.Pose pMatrixEntry, VertexConsumer pBuffer, float pX, float pY, float pZ, float pTexU, float pTexV) <E extends Entity>
intgetPackedLightCoords(E pEntity, float pPartialTicks) <T extends Entity>
EntityRenderer<? super T> getRenderer(T pEntity) private static EntitygetServerSideEntity(Entity pEntity) Map<PlayerSkin.Model, EntityRenderer<? extends Player>> voidonResourceManagerReload(ResourceManager pResourceManager) voidoverrideCameraOrientation(org.joml.Quaternionf pCameraOrientation) void<E extends Entity>
voidrender(E pEntity, double pX, double pY, double pZ, float pRotationYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) private static voidrenderBlockShadow(PoseStack.Pose pPose, VertexConsumer pVertexConsumer, ChunkAccess pChunk, LevelReader pLevel, BlockPos pPos, double pX, double pY, double pZ, float pSize, float pWeight) private voidrenderFlame(PoseStack pPoseStack, MultiBufferSource pBuffer, Entity pEntity, org.joml.Quaternionf pQuaternion) private static voidrenderHitbox(PoseStack pPoseStack, VertexConsumer pBuffer, Entity pEntity, float pRed, float pGreen, float pBlue, float pAlpha) private static voidrenderServerSideHitbox(PoseStack pPoseStack, Entity pEntity, MultiBufferSource pBufferSource) private static voidrenderShadow(PoseStack pPoseStack, MultiBufferSource pBuffer, Entity pEntity, float pWeight, float pPartialTicks, LevelReader pLevel, float pSize) private static voidrenderVector(PoseStack pPoseStack, VertexConsumer pBuffer, org.joml.Vector3f pStartPos, Vec3 pVector, int pColor) voidWorld sets this RenderManager's worldObj to the world providedvoidsetRenderHitBoxes(boolean pDebugBoundingBox) voidsetRenderShadow(boolean pRenderShadow) private static voidshadowVertex(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, float pOffsetX, float pOffsetY, float pOffsetZ, float pU, float pV) <E extends Entity>
booleanshouldRender(E pEntity, Frustum pFrustum, double pCamX, double pCamY, double pCamZ) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getNameMethods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
SHADOW_RENDER_TYPE
-
MAX_SHADOW_RADIUS
private static final float MAX_SHADOW_RADIUS- See Also:
-
SHADOW_POWER_FALLOFF_Y
private static final float SHADOW_POWER_FALLOFF_Y- See Also:
-
renderers
-
playerRenderers
lists the various player skin types with their associated Renderer class instances. -
textureManager
-
level
-
camera
-
cameraOrientation
private org.joml.Quaternionf cameraOrientation -
crosshairPickEntity
-
itemRenderer
-
blockRenderDispatcher
-
itemInHandRenderer
-
font
-
options
-
entityModels
-
shouldRenderShadow
private boolean shouldRenderShadow -
renderHitBoxes
private boolean renderHitBoxes
-
-
Constructor Details
-
EntityRenderDispatcher
public EntityRenderDispatcher(Minecraft pMinecraft, TextureManager pTextureManager, ItemRenderer pItemRenderer, BlockRenderDispatcher pBlockRenderDispatcher, Font pFont, Options pOptions, EntityModelSet pEntityModels)
-
-
Method Details
-
getPackedLightCoords
-
getRenderer
-
prepare
-
overrideCameraOrientation
public void overrideCameraOrientation(org.joml.Quaternionf pCameraOrientation) -
setRenderShadow
public void setRenderShadow(boolean pRenderShadow) -
setRenderHitBoxes
public void setRenderHitBoxes(boolean pDebugBoundingBox) -
shouldRenderHitBoxes
public boolean shouldRenderHitBoxes() -
shouldRender
-
render
public <E extends Entity> void render(E pEntity, double pX, double pY, double pZ, float pRotationYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) -
renderServerSideHitbox
private static void renderServerSideHitbox(PoseStack pPoseStack, Entity pEntity, MultiBufferSource pBufferSource) -
getServerSideEntity
-
renderHitbox
private static void renderHitbox(PoseStack pPoseStack, VertexConsumer pBuffer, Entity pEntity, float pRed, float pGreen, float pBlue, float pAlpha) -
renderVector
private static void renderVector(PoseStack pPoseStack, VertexConsumer pBuffer, org.joml.Vector3f pStartPos, Vec3 pVector, int pColor) -
renderFlame
private void renderFlame(PoseStack pPoseStack, MultiBufferSource pBuffer, Entity pEntity, org.joml.Quaternionf pQuaternion) -
fireVertex
private static void fireVertex(PoseStack.Pose pMatrixEntry, VertexConsumer pBuffer, float pX, float pY, float pZ, float pTexU, float pTexV) -
renderShadow
private static void renderShadow(PoseStack pPoseStack, MultiBufferSource pBuffer, Entity pEntity, float pWeight, float pPartialTicks, LevelReader pLevel, float pSize) -
renderBlockShadow
private static void renderBlockShadow(PoseStack.Pose pPose, VertexConsumer pVertexConsumer, ChunkAccess pChunk, LevelReader pLevel, BlockPos pPos, double pX, double pY, double pZ, float pSize, float pWeight) -
shadowVertex
private static void shadowVertex(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, float pOffsetX, float pOffsetY, float pOffsetZ, float pU, float pV) -
setLevel
World sets this RenderManager's worldObj to the world provided -
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double pX, double pY, double pZ) -
cameraOrientation
public org.joml.Quaternionf cameraOrientation() -
getItemInHandRenderer
-
getSkinMap
-
onResourceManagerReload
- Specified by:
onResourceManagerReloadin interfaceResourceManagerReloadListener
-