public class Registries
extends java.lang.Object
| Constructor and Description |
|---|
Registries() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.client.renderer.texture.TextureAtlasSprite |
getParticleIcon(net.minecraft.block.state.IBlockState state)
Gets the
TextureAtlasSprite to used for the IBlockState. |
static void |
processFMLStateEvent(net.minecraftforge.fml.common.event.FMLStateEvent event)
Processes
IFMLEventCallbacks for the specified event. |
static void |
processPostSetBlock(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
Processes
ISetBlockCallbacks. |
static CallbackResult<java.lang.Void> |
processPreSetBlock(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
Processes
ISetBlockCallbacks. |
static CallbackResult<java.lang.Boolean> |
processRenderBlockCallbacks(net.minecraft.client.renderer.VertexBuffer buffer,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
Processes
IRenderBlockCallbacks. |
static boolean |
renderItem(net.minecraft.item.ItemStack itemStack)
Renders the
ItemStack with a registered IItemRenderer. |
public static void processFMLStateEvent(net.minecraftforge.fml.common.event.FMLStateEvent event)
IFMLEventCallbacks for the specified event.event - the eventpublic static CallbackResult<java.lang.Boolean> processRenderBlockCallbacks(net.minecraft.client.renderer.VertexBuffer buffer, net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state)
IRenderBlockCallbacks.BlockRendererDispatcher.renderBlock(IBlockState, BlockPos, IBlockAccess, VertexBuffer)buffer - the bufferworld - the worldpos - the posstate - the statepublic static CallbackResult<java.lang.Void> processPreSetBlock(net.minecraft.world.chunk.Chunk chunk, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState oldState, net.minecraft.block.state.IBlockState newState)
chunk - the chunkpos - the posoldState - the old statenewState - the new statepublic static void processPostSetBlock(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
chunk - the chunkpos - the posoldState - the old statenewState - the new statepublic static boolean renderItem(net.minecraft.item.ItemStack itemStack)
ItemStack with a registered IItemRenderer.RenderItem.renderModel(net.minecraft.client.renderer.block.model.IBakedModel, net.minecraft.item.ItemStack).itemStack - the item stackpublic static net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon(net.minecraft.block.state.IBlockState state)
TextureAtlasSprite to used for the IBlockState.BlockModelShapes.getTexture(IBlockState)state - the state