Class RenderTileEntityGeneric<G extends RenderTileEntityGeneric<G,T>,T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
com.pixelmonmod.pixelmon.client.render.tileEntities.TileEntityRenderer<T>
com.pixelmonmod.pixelmon.client.render.tileEntities.RenderTileEntityGeneric<G,T>
- All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<T>
- Direct Known Subclasses:
BattleSpectatorTileEntityRenderer
public class RenderTileEntityGeneric<G extends RenderTileEntityGeneric<G,T>,T extends net.minecraft.world.level.block.entity.BlockEntity>
extends TileEntityRenderer<T>
Created by clienthax on 7/3/2015.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
HashMap<GenericSmdModel,
net.minecraft.resources.ResourceLocation> protected int
boolean
boolean
net.minecraft.client.model.Model
protected int
protected float
protected net.minecraft.resources.ResourceLocation
protected float
Fields inherited from class com.pixelmonmod.pixelmon.client.render.tileEntities.TileEntityRenderer
profileTileEntityRender
-
Constructor Summary
ConstructorDescriptionRenderTileEntityGeneric
(String modId, net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context dispatcher, String textureFileName, net.minecraft.client.model.Model model, int correctionAngles) RenderTileEntityGeneric
(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context dispatcher, String textureFileName, net.minecraft.client.model.Model model) RenderTileEntityGeneric
(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context dispatcher, String textureFileName, net.minecraft.client.model.Model model, int correctionAngles) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(T te, net.minecraft.world.level.block.state.BlockState state, double x, double y, double z, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay) void
setTexture
(net.minecraft.resources.ResourceLocation texture) Methods inherited from class com.pixelmonmod.pixelmon.client.render.tileEntities.TileEntityRenderer
bindModelBuffer, bindSMDBuffer, bindTexture, getRotation, hasProperty, render, renderModel, renderModel, renderOBJ, renderOBJ, renderSMD, renderSMD, renderTransparentSMD
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
texture
protected net.minecraft.resources.ResourceLocation texture -
model
public net.minecraft.client.model.Model model -
childModels
-
correctionAngles
protected int correctionAngles -
rotateDegrees
protected int rotateDegrees -
scale
protected float scale -
yOffset
protected float yOffset -
blend
public boolean blend -
disableCulling
public boolean disableCulling -
disableLighting
public boolean disableLighting
-
-
Constructor Details
-
RenderTileEntityGeneric
public RenderTileEntityGeneric(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context dispatcher, String textureFileName, net.minecraft.client.model.Model model) -
RenderTileEntityGeneric
-
RenderTileEntityGeneric
public RenderTileEntityGeneric(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context dispatcher, String textureFileName, net.minecraft.client.model.Model model, int correctionAngles)
-
-
Method Details
-
setTexture
public void setTexture(net.minecraft.resources.ResourceLocation texture) -
render
public void render(T te, net.minecraft.world.level.block.state.BlockState state, double x, double y, double z, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, int combinedOverlay) - Specified by:
render
in classTileEntityRenderer<T extends net.minecraft.world.level.block.entity.BlockEntity>
-