public class AnimatedRenderer extends MalisisRenderer<net.minecraft.tileentity.TileEntity> implements IAnimatedRenderer
IItemRenderer.DummyModelbaseBrightness, batchedBuffer, block, blockState, buffer, destroyBlockProgress, drawMode, getBlockDamage, isBatched, item, itemStack, malisisVertexFormat, partialTick, pos, posOffset, renderGlobal, renderType, tileEntity, tranformType, vertexDrawn, vertexFormat, world| Constructor and Description |
|---|
AnimatedRenderer() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareRenderInfos(Point viewOffset,
net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation r1,
net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation r2) |
IAnimatedRenderable |
getRenderable()
Gets the currently drawn
IAnimatedRenderable. |
static <T extends ISortedRenderable> |
getRenderable(net.minecraft.util.math.BlockPos pos)
Gets the
ISortedRenderable for the specified BlockPos, if the chunk is loaded. |
static java.util.stream.Stream<ISortedRenderable> |
getRenderables(net.minecraft.world.chunk.Chunk chunk)
|
static void |
registerRenderable(net.minecraft.util.math.BlockPos pos,
AnimatedModelComponent amc)
Registers the
ISortedRenderable at the specified position if there isn't already one. |
static CallbackResult<java.lang.Void> |
removeRenderable(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
Removes the stored
ISortedRenderable in the chunk for the position, if necessary. |
void |
render()
Main rendering method.
|
void |
renderAnimated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IAnimatedRenderable renderable,
double x,
double y,
double z,
float partialTicks) |
static java.util.List<net.minecraft.tileentity.TileEntity> |
renderSortedTileEntities(net.minecraft.client.renderer.chunk.RenderChunk renderChunk,
java.util.List<net.minecraft.tileentity.TileEntity> list,
net.minecraft.client.renderer.culling.ICamera camera,
float partialTick)
Render
TileEntities and ISortedRenderable to fix the transparency sorting. |
static java.util.List<net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation> |
sortRenderInfos(java.util.List<net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation> renderInfos) |
_initialize, applyTexture, applyTexture, applyTexture, bindTexture, calcVertexBrightness, calcVertexColor, clean, colorMultiplier, disableBlending, disableTextures, draw, drawFace, drawFace, drawModel, drawShape, drawShape, drawText, drawVertex, enableBlending, enableTextures, endBillboard, ensureBlock, getAoBrightness, getBaseBrightness, getBlockAmbientOcclusion, getBlockState, getIcon, getIconProvider, getItemStack, getMixedBrightnessForBlock, getPartialTick, getPos, getRenderBounds, getRenderLayer, getRenderType, getTileEntity, getTransform, getWorldAccess, initialize, isDrawing, isGui3d, next, next, next, next, prepare, registerFor, registerFor, registerFor, registerForRenderWorldLast, renderBlock, renderItem, renderStandard, renderTileEntityAt, renderWorldLastEvent, reset, set, set, set, set, set, set, set, set, setBatched, setBillboard, setTransformType, shouldRender, shouldRenderFace, shouldRotateIcon, shouldSetViewportPosition, smartCull, startDrawing, startDrawing, startDrawing, startDrawingpublic IAnimatedRenderable getRenderable()
IAnimatedRenderable.public void renderAnimated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IAnimatedRenderable renderable,
double x,
double y,
double z,
float partialTicks)
renderAnimated in interface IAnimatedRendererpublic void render()
MalisisRendererrender in class MalisisRenderer<net.minecraft.tileentity.TileEntity>public static CallbackResult<java.lang.Void> removeRenderable(net.minecraft.world.chunk.Chunk chunk, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState oldState, net.minecraft.block.state.IBlockState newState)
ISortedRenderable in the chunk for the position, if necessary.chunk - the chunkpos - the posoldState - the old statenewState - the new statepublic static java.util.stream.Stream<ISortedRenderable> getRenderables(net.minecraft.world.chunk.Chunk chunk)
chunk - the chunkpublic static <T extends ISortedRenderable> java.util.Optional<T> getRenderable(net.minecraft.util.math.BlockPos pos)
ISortedRenderable for the specified BlockPos, if the chunk is loaded.T - the generic typepos - the pospublic static void registerRenderable(net.minecraft.util.math.BlockPos pos,
AnimatedModelComponent amc)
ISortedRenderable at the specified position if there isn't already one.pos - the posamc - the amcpublic static java.util.List<net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation> sortRenderInfos(java.util.List<net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation> renderInfos)
public static int compareRenderInfos(Point viewOffset, net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation r1, net.minecraft.client.renderer.RenderGlobal.ContainerLocalRenderInformation r2)
public static java.util.List<net.minecraft.tileentity.TileEntity> renderSortedTileEntities(net.minecraft.client.renderer.chunk.RenderChunk renderChunk,
java.util.List<net.minecraft.tileentity.TileEntity> list,
net.minecraft.client.renderer.culling.ICamera camera,
float partialTick)
TileEntities and ISortedRenderable to fix the transparency sorting.RenderGlobal.renderEntities(Entity, ICamera, float)renderChunk - the render chunklist - the listcamera - the camerapartialTick - the partial tick