public class AnimatedRenderer extends MalisisRenderer<net.minecraft.tileentity.TileEntity>
IItemRenderer.DummyModelbaseBrightness, batchedBuffer, block, blockState, buffer, destroyBlockProgress, drawMode, getBlockDamage, item, itemStack, malisisVertexFormat, partialTick, pos, posOffset, renderGlobal, renderType, tileEntity, tranformType, vertexDrawn, vertexFormat, world| Constructor and Description |
|---|
AnimatedRenderer() |
| Modifier and Type | Method and Description |
|---|---|
IAnimatedRenderable |
getRenderable()
Gets the currently drawn
IAnimatedRenderable. |
static java.util.Optional<IAnimatedRenderable> |
getRenderable(net.minecraft.util.math.BlockPos pos)
Gets the
ISortedRenderable for the specified BlockPos. |
void |
onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload event)
Removes the registered
IAnimatedRenderable for the positions in the unloading chunk. |
static void |
registerRenderable(net.minecraft.world.IBlockAccess world,
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 for the position, if necessary. |
void |
render()
Main rendering method.
|
boolean |
shouldRender(net.minecraftforge.client.event.RenderWorldLastEvent event,
net.minecraft.world.IBlockAccess world)
Whether the renderer should render.
|
_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, isBatched, 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, shouldRenderFace, shouldRotateIcon, shouldSetViewportPosition, smartCull, startDrawing, startDrawing, startDrawing, startDrawingpublic IAnimatedRenderable getRenderable()
IAnimatedRenderable.public boolean shouldRender(net.minecraftforge.client.event.RenderWorldLastEvent event,
net.minecraft.world.IBlockAccess world)
IRenderWorldLastshouldRender in interface IRenderWorldLastshouldRender in class MalisisRenderer<net.minecraft.tileentity.TileEntity>event - the eventworld - the worldpublic void render()
MalisisRendererrender in class MalisisRenderer<net.minecraft.tileentity.TileEntity>public void onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload event)
IAnimatedRenderable for the positions in the unloading chunk.event - the eventpublic 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 for the position, if necessary.chunk - the chunkpos - the posoldState - the old statenewState - the new statepublic static java.util.Optional<IAnimatedRenderable> getRenderable(net.minecraft.util.math.BlockPos pos)
ISortedRenderable for the specified BlockPos.T - the generic typepos - the pospublic static void registerRenderable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
AnimatedModelComponent amc)
ISortedRenderable at the specified position if there isn't already one.pos - the posamc - the amc