public class MalisisRegistry
extends java.lang.Object
| Constructor and Description |
|---|
MalisisRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
onInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLInitializationEvent> callback)
Registers a
ModEventRegistry.IFMLEventCallback for when FMLInitializationEvent is called for MalisisCore. |
static void |
onLoadComplete(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLLoadCompleteEvent> callback)
Registers a
ModEventRegistry.IFMLEventCallback for when FMLLoadCompleteEvent is called for MalisisCore. |
static void |
onPostInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLPostInitializationEvent> callback)
Registers a
ModEventRegistry.IFMLEventCallback for when FMLPostInitializationEvent is called for MalisisCore. |
static void |
onPostSetBlock(SetBlockCallbackRegistry.ISetBlockCallback callback,
ICallback.CallbackOption<SetBlockCallbackRegistry.ISetBlockCallbackPredicate> option)
Registers a
SetBlockCallbackRegistry.ISetBlockCallback with the specified ICallback.CallbackOption to be called before a Block is placed in the
world. |
static void |
onPreInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLPreInitializationEvent> callback)
Registers a
ModEventRegistry.IFMLEventCallback for when FMLPreInitializationEvent is called for MalisisCore. |
static void |
onPreSetBlock(SetBlockCallbackRegistry.ISetBlockCallback callback,
ICallback.CallbackOption<SetBlockCallbackRegistry.ISetBlockCallbackPredicate> option)
Registers a
SetBlockCallbackRegistry.ISetBlockCallback with the specified ICallback.CallbackOption to be called after a Block is placed in the
world. |
static void |
onRenderBlock(RenderBlockRegistry.IRenderBlockCallback callback,
ICallback.CallbackOption<RenderBlockRegistry.IRenderBlockCallbackPredicate> option)
Registers a
RenderBlockRegistry.IRenderBlockCallback with the specified ICallback.CallbackOption to be called when rendering blocks. |
static void |
register(IRegisterable registerable)
Registers a
IRegisterable. |
static void |
registerBlockRenderer(net.minecraft.block.Block block,
IBlockRenderer renderer)
|
static void |
registerBlockRendererOverride(ClientRegistry.BlockRendererOverride override) |
static void |
registerDummyModel(net.minecraft.item.Item item,
net.minecraft.util.ResourceLocation rl)
Registers a
IItemRenderer.DummyModel for the Item. |
static void |
registerDummyModel(net.minecraft.item.Item item,
java.lang.String name)
Registers a
IItemRenderer.DummyModel for the Item. |
static void |
registerItemRenderer(net.minecraft.item.Item item,
IItemRenderer renderer)
Registers a
IItemRenderer for the Item. |
static void |
registerItemRendererOverride(ClientRegistry.ItemRendererOverride override) |
static void |
registerRenderWorldLast(IRenderWorldLast renderer)
Registers a
IRenderWorldLast. |
static net.minecraft.util.SoundEvent |
registerSound(java.lang.String modId,
java.lang.String soundId)
Registers a new
SoundEvent. |
static void |
unregisterRenderWorldLast(IRenderWorldLast renderer)
Unregisters a
IRenderWorldLast |
public static void onPreInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLPreInitializationEvent> callback)
ModEventRegistry.IFMLEventCallback for when FMLPreInitializationEvent is called for MalisisCore.callback - the callbackpublic static void onInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLInitializationEvent> callback)
ModEventRegistry.IFMLEventCallback for when FMLInitializationEvent is called for MalisisCore.callback - the callbackpublic static void onPostInit(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLPostInitializationEvent> callback)
ModEventRegistry.IFMLEventCallback for when FMLPostInitializationEvent is called for MalisisCore.callback - the callbackpublic static void onLoadComplete(ModEventRegistry.IFMLEventCallback<net.minecraftforge.fml.common.event.FMLLoadCompleteEvent> callback)
ModEventRegistry.IFMLEventCallback for when FMLLoadCompleteEvent is called for MalisisCore.callback - the callbackpublic static void register(IRegisterable registerable)
registerable - the registerablepublic static void onRenderBlock(RenderBlockRegistry.IRenderBlockCallback callback, ICallback.CallbackOption<RenderBlockRegistry.IRenderBlockCallbackPredicate> option)
RenderBlockRegistry.IRenderBlockCallback with the specified ICallback.CallbackOption to be called when rendering blocks.callback - the callbackoption - the optionpublic static void onPreSetBlock(SetBlockCallbackRegistry.ISetBlockCallback callback, ICallback.CallbackOption<SetBlockCallbackRegistry.ISetBlockCallbackPredicate> option)
SetBlockCallbackRegistry.ISetBlockCallback with the specified ICallback.CallbackOption to be called after a Block is placed in the
world.callback - the callbackoption - the optionpublic static void onPostSetBlock(SetBlockCallbackRegistry.ISetBlockCallback callback, ICallback.CallbackOption<SetBlockCallbackRegistry.ISetBlockCallbackPredicate> option)
SetBlockCallbackRegistry.ISetBlockCallback with the specified ICallback.CallbackOption to be called before a Block is placed in the
world.callback - the callbackoption - the optionpublic static void registerBlockRenderer(net.minecraft.block.Block block,
IBlockRenderer renderer)
block - the blockrenderer - the rendererpublic static void registerItemRenderer(net.minecraft.item.Item item,
IItemRenderer renderer)
IItemRenderer for the Item.item - the itemrenderer - the rendererpublic static void registerRenderWorldLast(IRenderWorldLast renderer)
IRenderWorldLast.renderer - the rendererpublic static void unregisterRenderWorldLast(IRenderWorldLast renderer)
IRenderWorldLastrenderer - the rendererpublic static void registerDummyModel(net.minecraft.item.Item item,
java.lang.String name)
IItemRenderer.DummyModel for the Item.DummyModels will prevent complaints from MC about missing model definitions and will redirect method calls to the
registered IItemRenderer for the item.item - the itempublic static void registerDummyModel(net.minecraft.item.Item item,
net.minecraft.util.ResourceLocation rl)
IItemRenderer.DummyModel for the Item.DummyModels will prevent complaints from MC about missing model definitions and will redirect method calls to the
registered IItemRenderer for the item.item - the itemrl - the rlpublic static void registerBlockRendererOverride(ClientRegistry.BlockRendererOverride override)
public static void registerItemRendererOverride(ClientRegistry.ItemRendererOverride override)
public static net.minecraft.util.SoundEvent registerSound(java.lang.String modId,
java.lang.String soundId)
SoundEvent.modId - the mod idsoundId - the sound id