本文整理匯總了Java中cpw.mods.fml.client.registry.ClientRegistry類的典型用法代碼示例。如果您正苦於以下問題:Java ClientRegistry類的具體用法?Java ClientRegistry怎麽用?Java ClientRegistry使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ClientRegistry類屬於cpw.mods.fml.client.registry包,在下文中一共展示了ClientRegistry類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: init
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void init(FMLInitializationEvent e) {
super.init(e);
Register.registerGlobalEntityID(EntityLaser.class, "laser");
Register.registerEntityRenderingHandler(EntityLaser.class, new RenderLaser());
Register.registerItemRenderer(RorysMod.items.rifle1, new RenderRifle());
Register.registerItemRenderer(RorysMod.items.rifle2, new RenderRifle());
Register.registerItemRenderer(RorysMod.items.rifle3, new RenderRifle());
Register.registerItemRenderer(RorysMod.items.rifle4, new RenderRifle());
Register.registerItemRenderer(RorysMod.items.rifle5, new RenderRifle());
TileEntitySpecialRenderer render = new RenderRifleTable();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRifleTable.class, render);
Register.registerItemRenderer(Item.getItemFromBlock(RorysMod.blocks.upgradeTable), new ItemRender(render, new TileEntityRifleTable()));
render = new RenderPoweredChest();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPoweredChest.class, render);
FMLInterModComms.sendMessage("Waila", "register", WailaConfig.class.getName() + ".callbackRegister");
}
示例2: registerBlockRenderers
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
private void registerBlockRenderers() {
if (EtFuturum.enableSlimeBlock)
RenderingRegistry.registerBlockHandler(new BlockSlimeBlockRender());
if (EtFuturum.enableDoors)
RenderingRegistry.registerBlockHandler(new BlockDoorRenderer());
if (EtFuturum.enableBanners)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBanner.class, new TileEntityBannerRenderer());
if (EtFuturum.enableFancySkulls)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, new TileEntityFancySkullRenderer());
if (EtFuturum.enableChorusFruit) {
RenderingRegistry.registerBlockHandler(new BlockEndRodRender());
RenderingRegistry.registerBlockHandler(new BlockChorusFlowerRender());
RenderingRegistry.registerBlockHandler(new BlockChorusPlantRender());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEndRod.class, new TileEntityEndRodRenderer());
}
if (EtFuturum.enableColourfulBeacons)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNewBeacon.class, new TileEntityNewBeaconRenderer());
RenderingRegistry.registerBlockHandler(new BlockChestRenderer());
}
示例3: load
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
public static void load()
{
KEY_GENERATE = new KeyBinding("key.GENERATE", Keyboard.KEY_O, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding(KEY_GENERATE);
KEY_STATS = new KeyBinding("key.stats", Keyboard.KEY_P, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding(KEY_STATS);
KEY_GROUP = new KeyBinding("key.group", Keyboard.KEY_G, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding(KEY_GROUP);
KEY_SELECT_CLASSE = new KeyBinding("key.select_classe", Keyboard.KEY_I, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding(KEY_SELECT_CLASSE);
KEY_SELECT_RACE = new KeyBinding("key.select_race", Keyboard.KEY_U, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding( KEY_SELECT_RACE);
KEY_SPELLS = new KeyBinding[10];
for (int i = 0; i < 10; i++)
{
KEY_SPELLS[i] = new KeyBinding("key.spells_" + i, Keyboard.KEY_NUMPAD1 + i, "key.categories.magiccrusade");
ClientRegistry.registerKeyBinding(KEY_SPELLS[i]);
}
}
示例4: init
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void init(final @Nonnull FMLInitializationEvent event) {
super.init(event);
// Replace Sign Renderer
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySign.class, Client.renderer);
MinecraftForgeClient.registerItemRenderer(Items.sign, new CustomItemSignRenderer());
// Event Register
Client.handler.init();
ClientCommandHandler.instance.registerCommand(Client.rootCommand);
}
示例5: initRenders
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void initRenders()
{
RenderIds.campfire = RenderingRegistry.getNextAvailableRenderId();
ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire());
ClientRegistry.bindTileEntitySpecialRenderer(TileHardJug.class, new TileRenderJug());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.hardjug), new ItemRenderJug());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.campfire), new ItemRenderCampfire());
// ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire());
if(Loader.isModLoaded("NotEnoughItems"))
{
}
}
示例6: registerTileEntitiesRenderers
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void registerTileEntitiesRenderers() {
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLargePowerLine.class, new LargePowerLineRenderer());
MinecraftForgeClient.registerItemRenderer(
Item.getItemFromBlock(PowerLinesMod.blocks.largePowerLine),
new LargePowerLineItemRenderer()
);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySubStation.class, new SubStationRenderer());
MinecraftForgeClient.registerItemRenderer(
Item.getItemFromBlock(PowerLinesMod.blocks.subStation),
new SubStationItemRenderer()
);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMediumPowerLine.class, new MediumPowerLineRenderer());
MinecraftForgeClient.registerItemRenderer(
Item.getItemFromBlock(PowerLinesMod.blocks.mediumPowerLine),
new MediumPowerLineItemRenderer()
);
}
示例7: registerRenderers
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
private void registerRenderers()
{
MinecraftForge.EVENT_BUS.register(new LineRenderer(Minecraft.getMinecraft()));
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransporter.class, new TransporterRenderer());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.transporter),
new TransporterItemRenderer());
MinecraftForgeClient.registerItemRenderer(ModItems.redLED,
new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.RED_LED)));
MinecraftForgeClient.registerItemRenderer(ModItems.blueLED,
new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.BLUE_LED)));
MinecraftForgeClient.registerItemRenderer(ModItems.greenLED,
new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.GREEN_LED)));
MinecraftForgeClient.registerItemRenderer(ModItems.itemCore,
new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.ITEM_CRYSTAL)));
MinecraftForgeClient.registerItemRenderer(ModItems.fluidCore,
new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.FLUID_CRYSTAL)));
}
示例8: registerRenderers
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
public void registerRenderers()
{
try
{
Field blockRendererField = RenderingRegistry.class.getDeclaredField("blockRenderers");
blockRendererField.setAccessible(true);
blockRenderers = (Map)blockRendererField.get(RenderingRegistry.instance());
}
catch (Throwable t) {}
BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId();
while (blockRenderers.containsKey(Integer.valueOf(BetterBarrels.blockBarrelRendererID))) {
BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId();
}
RenderingRegistry.registerBlockHandler(BetterBarrels.blockBarrelRendererID, new BlockBarrelRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarrel.class, new TileEntityBarrelRenderer());
}
示例9: initRenderingAndTextures
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void initRenderingAndTextures()
{
FMLCommonHandler.instance().bus().register(new ClientTickHandler());
RenderIds.mechanicalRoot = RenderingRegistry.getNextAvailableRenderId();
RenderIds.rotaryShaft = RenderingRegistry.getNextAvailableRenderId();
RenderIds.windTurbine = RenderingRegistry.getNextAvailableRenderId();
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.mechanicalRoot), new ItemRendererMechanicalRoot());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.rotaryShaft), new ItemRendererRotaryShaft());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.windTurbine), new ItemRendererWindTurbine());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMechanicalRoot.class, new TileEntityRendererMechanicalRoot());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRotaryShaft.class, new TileEntityRendererRotaryShaft());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWindTurbine.class, new TileEntityRendererWindTurbine());
}
示例10: init
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void init() {
super.init();
String[] types = new String[]{"Helmet", "Chestplate", "Leggings",
"Boots"};
for (int i = 0; i < types.length; i++)
LanguageRegistry.instance().addStringLocalization(
"item.armorEnder" + i + ".name",
String.format("Ender-Infused %s", types[i]));
FMLCommonHandler.instance().bus().register(this);
MinecraftForge.EVENT_BUS.register(this);
for (KeyBinding binding : allBindings)
ClientRegistry.registerKeyBinding(binding);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHMS.class,
new HMSTESR());
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(
EACommonProxy.blockHMS), new ItemRendererHMS());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRockExterminator.class,
new RockExterminatorTESR());
//MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(
// EACommonProxy.blockRockExterminator), new ItemRendererRockExterminator());
MinecraftForgeClient.registerItemRenderer(EACommonProxy.itemWarpGem, new ItemRendererWarpGem());
}
示例11: doTheRenderThing
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
public void doTheRenderThing(){
RenderingRegistry.registerEntityRenderingHandler(EntityFrankenstein.class, new RenderFrankenstein());
RenderingRegistry.registerEntityRenderingHandler(EntityWarhorse.class, new RenderWarhorse());
RenderingRegistry.registerEntityRenderingHandler(EntityPeep.class, new RenderPeep());
RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, new RenderUnicorn());
RenderingRegistry.registerEntityRenderingHandler(EntityCalavera.class, new RenderCalavera());
RenderingRegistry.registerEntityRenderingHandler(EntityGingerbread.class, new RenderGingerbread());
RenderingRegistry.registerEntityRenderingHandler(EntityShoggoth.class, new RenderShoggoth());
RenderingRegistry.registerEntityRenderingHandler(EntityDaySkeleton.class, new RenderSkeleton());
RenderingRegistry.registerEntityRenderingHandler(EntityDayZombie.class, new RenderZombie());
RenderingRegistry.registerEntityRenderingHandler(EntityShadowSlime.class, new RenderShadowSlime());
RenderingRegistry.registerEntityRenderingHandler(EntityCandySheep.class, new RenderCandySheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
RenderingRegistry.registerEntityRenderingHandler(EntityOldEnderman.class, new RenderOldEnderman());
if(Config.heads && !Loader.isModLoaded("foxlib")){
TileEntityRendererDispatcher.instance.mapSpecialRenderers.remove(TileEntitySkull.class);
BlockSkullRenderer blockSkullRenderer = new BlockSkullRenderer();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, blockSkullRenderer);
}
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChestRidiculous.class, new RenderTileEntityChest());
BlockChestRidiculous.render = RenderingRegistry.getNextAvailableRenderId();
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RidiculousBlocks.chest), new RenderItemChest());
ShaderHelper.initShaders();
}
示例12: registerRendering
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void registerRendering() {
//ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new QmRenderPalladiumWire());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new RenderPalladiumWire());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPotionDispencer.class, new RenderPotionDispencer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCreativeEnergyCell.class, new RenderEnergyCell("CREATIVE"));
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBasicEnergyCell.class, new RenderEnergyCell("BASIC"));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.palladiumWire), ItemRenderPalladiumWire.instance);
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.potionDispencer), ItemRenderPotionDispencer.instance);
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.creativeEnergyCell), ItemRenderEnergyCell.instanceCreative);
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.basicEnergyCell), ItemRenderEnergyCell.instanceBasic);
}
示例13: registerTileEntities
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
public void registerTileEntities()
{
EntitylistMF.init();
ClientRegistry.registerTileEntity(TileEntityLantern.class, "MFLantern",new TileEntityLanternRenderer());
ClientRegistry.registerTileEntity(TileEntityBellows.class, "Bellows", new TileEntityBellowsRenderer());
ClientRegistry.registerTileEntity(TileEntityDogBowl.class, "Dogbowl", new TileEntityDogbowlRenderer());
ClientRegistry.registerTileEntity(TileEntityAnvil.class, "Anvil",new TileEntityAnvilRenderer());
ClientRegistry.registerTileEntity(TileEntitySmelter.class, "Bloom",new TileEntitySmelterRenderer());
ClientRegistry.registerTileEntity(TileEntityForge.class, "Forge",new TileEntityForgeRenderer());
ClientRegistry.registerTileEntity(TileEntityTanningRack.class, "Tanner",new TileEntityTanningRackRenderer());
ClientRegistry.registerTileEntity(TileEntityWeaponRack.class, "Rack",new TileEntityWeaponRackRenderer());
GameRegistry.registerTileEntity(TileEntityBFurnace.class, "Blastfurnace");
ClientRegistry.registerTileEntity(TileEntityTripHammer.class, "MFTripHammer", new TileEntityTripHammerRenderer());
ClientRegistry.registerTileEntity(TileEntityRoast.class, "MFSpitRoast",new TileEntityRoastRenderer());
ClientRegistry.registerTileEntity(TileEntityFurnaceMF.class, "MFFurnace", new TileEntityFurnaceRendererMF());
ClientRegistry.registerTileEntity(TileEntityPrepBlock.class, "MFFoodPrep", new TileEntityFoodPrepRenderer());
ClientRegistry.registerTileEntity(TileEntityTailor.class, "MFTailor", new TileEntityTailorRenderer());
ClientRegistry.registerTileEntity(TileEntitySpinningWheel.class, "MFSpinningWheel", new TileEntitySpinningWheelRenderer());
ClientRegistry.registerTileEntity(TileEntityFirepit.class, "firepitMF", new TileEntityFirepitRenderer());
ClientRegistry.registerTileEntity(TileEntityOven.class, "ovenMF", new TileEntityOvenRenderer());
GameRegistry.registerTileEntity(TileEntityRoad.class, "roadMF");
}
示例14: registerTileEntities
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
@Override
public void registerTileEntities() {
TileEntityIC2ThermoRenderer renderThermalMonitor = new TileEntityIC2ThermoRenderer();
TileEntityRemoteThermoRenderer renderRemoteThermo = new TileEntityRemoteThermoRenderer();
TileEntityInfoPanelRenderer renderInfoPanel = new TileEntityInfoPanelRenderer();
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityThermo.class, "IC2Thermo", renderThermalMonitor);
GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm.class, "IC2HowlerAlarm");
GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityIndustrialAlarm.class, "IC2IndustrialAlarm");
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRemoteThermo.class, "IC2RemoteThermo", renderRemoteThermo);
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.class, "IC2NCInfoPanel", renderInfoPanel);
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanelExtender.class, "IC2NCInfoPanelExtender", renderInfoPanel);
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanel.class, "IC2NCAdvancedInfoPanel", renderInfoPanel);
ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanelExtender.class, "IC2NCAdvancedInfoPanelExtender", renderInfoPanel);
GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityEnergyCounter.class, "IC2NCEnergyCounter");
GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter.class, "IC2NCAverageCounter");
GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRangeTrigger.class, "IC2NCRangeTrigger");
int modelId = RenderingRegistry.getNextAvailableRenderId();
IC2NuclearControl.instance.modelId = modelId;
RenderingRegistry.registerBlockHandler(new MainBlockRenderer(modelId));
}
示例15: registerRenderers
import cpw.mods.fml.client.registry.ClientRegistry; //導入依賴的package包/類
public void registerRenderers(){
TileEntitySpecialRenderer render = new RenderElectricEngine();
TileEntitySpecialRenderer render2 = new RenderOilEngine();
TileEntitySpecialRenderer render3 = new RenderOilPump();
TileEntitySpecialRenderer render4 = new RenderLiquidTank();
TileEntitySpecialRenderer render5 = new RenderFluidPipe();
TileEntitySpecialRenderer render6 = new RenderElectricPipe();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricEngine.class, render);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilEngine.class, render2);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilPump.class, render3);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluidPipe.class, render5);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLiquidTank.class, render4);
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricPipe.class, render6);
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricEngine), new ItemRendererElectricEngine(render, new TileEntityElectricEngine()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilEngine), new ItemRendererOilEngine(render2, new TileEntityOilEngine()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilPump), new ItemRendererOilPump(render3, new TileEntityOilPump()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.liquidTank), new ItemRendererLiquidTank(render4, new TileEntityLiquidTank()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.fluidPipe), new ItemRendererFluidPipe(render5, new TileEntityFluidPipe()));
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricPipe), new ItemRendererElectricPipe(render6, new TileEntityElectricPipe()));
MinecraftForgeClient.registerItemRenderer(TectoCraft.minigun, new ItemRenderMinigun());
MinecraftForgeClient.registerItemRenderer(TectoCraft.iphone6, new ItemRenderIphone6());
MinecraftForgeClient.registerItemRenderer(TectoCraft.nethersBane, new ItemRenderNethersBane());
MinecraftForgeClient.registerItemRenderer(TectoCraft.tectonicMultitool, new ItemRenderTectoMultitool());
}