当前位置: 首页>>代码示例>>Java>>正文


Java MultiPartRegistry类代码示例

本文整理汇总了Java中codechicken.multipart.MultiPartRegistry的典型用法代码示例。如果您正苦于以下问题:Java MultiPartRegistry类的具体用法?Java MultiPartRegistry怎么用?Java MultiPartRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MultiPartRegistry类属于codechicken.multipart包,在下文中一共展示了MultiPartRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public static void init() {
    MultiPartRegistry.registerParts(instance, new String[]{
            "wrcbe-tran",
            "wrcbe-recv",
            "wrcbe-jamm"
    });

    MultipartGenerator.registerPassThroughInterface("codechicken.wirelessredstone.api.ITileWireless");
    MultipartGenerator.registerPassThroughInterface("codechicken.wirelessredstone.api.ITileReceiver");
    MultipartGenerator.registerPassThroughInterface("codechicken.wirelessredstone.api.ITileJammer");
}
 
开发者ID:TheCBProject,项目名称:WirelessRedstone,代码行数:12,代码来源:PartFactory.java

示例2: register

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public static void register() {
    final String[] s = new String[RegisterMicroBlocks.mParts.size()];
    for (int i = 0; i < RegisterMicroBlocks.mParts.size(); ++i) {
        s[i] = RegisterMicroBlocks.mParts.get(i).getType();
        RegisterMicroBlocks.mParts.get(i).registerPassThroughs();
    }
    MultiPartRegistry.registerParts((MultiPartRegistry.IPartFactory)RegisterMicroBlocks.instance, s);
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:9,代码来源:RegisterMicroBlocks.java

示例3: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init() {
    if (this.name.equals("") || this.block == null || this.part == null) {
        return;
    }
    MultiPartRegistry.registerConverter((MultiPartRegistry.IPartConverter)this);
    MultiPartRegistry.registerParts((MultiPartRegistry.IPartFactory)this, new String[] { this.name });
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:8,代码来源:RegisterBlockPart.java

示例4: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init()
{
	MultiPartRegistry.registerParts(this, new String[] {"mekanism:universal_cable_basic",
			"mekanism:universal_cable_advanced", "mekanism:universal_cable_elite",
			"mekanism:universal_cable_ultimate", "mekanism:mechanical_pipe",
			"mekanism:mechanical_pipe_basic", "mekanism:mechanical_pipe_advanced",
			"mekanism:mechanical_pipe_elite", "mekanism:mechanical_pipe_ultimate",
			"mekanism:pressurized_tube_basic", "mekanism:pressurized_tube_advanced",
			"mekanism:pressurized_tube_elite", "mekanism:pressurized_tube_ultimate",
			"mekanism:logistical_transporter_basic", "mekanism:logistical_transporter_advanced", 
			"mekanism:logistical_transporter_elite", "mekanism:logistical_transporter_ultimate", 
			"mekanism:restrictive_transporter", "mekanism:diversion_transporter", 
			"mekanism:heat_transmitter", "mekanism:glow_panel"});

	MultipartGenerator.registerPassThroughInterface("mekanism.api.IConfigurable");
	MultipartGenerator.registerPassThroughInterface("mekanism.api.energy.IStrictEnergyAcceptor");
	MultipartGenerator.registerPassThroughInterface("mekanism.api.gas.IGasHandler");
	MultipartGenerator.registerPassThroughInterface("mekanism.api.IHeatTransfer");
	MultipartGenerator.registerPassThroughInterface("mekanism.api.transmitters.IBlockableConnection");
	MultipartGenerator.registerPassThroughInterface("mekanism.api.transmitters.ITransmitterTile");
	MultipartGenerator.registerPassThroughInterface("mekanism.common.base.ITransporterTile");
	MultipartGenerator.registerPassThroughInterface("mekanism.common.base.ILogisticalTransporter");
	MultipartGenerator.registerPassThroughInterface("mekanism.common.base.ITileNetwork");
	MultipartGenerator.registerPassThroughInterface("cofh.api.energy.IEnergyHandler");

	registerMicroMaterials();
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:28,代码来源:MultipartMekanism.java

示例5: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init()
{
	MultiPartRegistry.registerConverter(this);
	MultiPartRegistry.registerParts(new ModParts(), new String[] {
			PartRotaryShaft.type
	});
}
 
开发者ID:Tamfoolery,项目名称:Woodcraft,代码行数:8,代码来源:ModParts.java

示例6: load

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void load(){
	MicroRegistry.BasicCable = new ItemPlaneCableMultipart();
	GameRegistry.registerItem(BasicCable, "IG_Cable_Basic");
	MultiPartRegistry.registerParts(new PlaneCable(), new String[]{MicroRegistry.BasicCable.getUnlocalizedName()});
	MinecraftForgeClient.registerItemRenderer(BasicCable, new RenderCablePlaneItem());
	
	MicroRegistry.FluxCable = new ItemBigCableMultipart();
	GameRegistry.registerItem(FluxCable, "IG_Cable_Flux");
	MultiPartRegistry.registerParts(new BigCable(), new String[]{MicroRegistry.FluxCable.getUnlocalizedName()});
	MinecraftForgeClient.registerItemRenderer(FluxCable, new RenderCableBigItem());
}
 
开发者ID:ZippyIO,项目名称:IgnitionUtilities,代码行数:12,代码来源:MicroRegistry.java

示例7: preInit

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public void preInit(){
    multiparts.put("tile.pressureTube", PartPressureTube.class);
    multiparts.put("tile.advancedPressureTube", PartAdvancedPressureTube.class);

    for(String part : multiparts.keySet()) {
        MultiPartRegistry.registerParts(this, new String[]{part});
    }
    MultiPartRegistry.registerConverter(this);

    // Itemss.pressureTube = new ItemPart("tile.pressureTube").setUnlocalizedName("pressureTube").setCreativeTab(pneumaticCraftTab);
    //Itemss.registerItem(Itemss.pressureTube, "part.pressureTube");
    MinecraftForge.EVENT_BUS.register(new FMPPlacementListener());
    NetworkHandler.INSTANCE.registerMessage(PacketFMPPlacePart.class, PacketFMPPlacePart.class, NetworkHandler.discriminant++, Side.SERVER);
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:16,代码来源:FMP.java

示例8: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public static void init()
{
    MultiPartRegistry.registerParts(INSTANCE, new String[]{"tile." + Names.relocator});

    MultipartGenerator.registerPassThroughInterface(IRelocator.class.getCanonicalName());
    MultipartGenerator.registerPassThroughInterface(ISidedInventory.class.getCanonicalName());
}
 
开发者ID:Dynious,项目名称:RefinedRelocation,代码行数:8,代码来源:PartFactory.java

示例9: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init() {
    MultiPartRegistry.registerConverter((MultiPartRegistry.IPartConverter)this);
    MultiPartRegistry.registerParts((MultiPartRegistry.IPartFactory)this, new String[] { "extrautils:transfer_pipe", "extrautils:transfer_pipe_filter" });
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:5,代码来源:RegisterPipeParts.java

示例10: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init() {
    MultiPartRegistry.registerConverter((MultiPartRegistry.IPartConverter)this);
    MultiPartRegistry.registerParts((MultiPartRegistry.IPartFactory)this, new String[] { "extrautils:transfer_node_inv", "extrautils:transfer_node_liquid", "extrautils:transfer_node_energy", "extrautils:transfer_node_inv_remote", "extrautils:transfer_node_liquid_remote", "extrautils:transfer_node_energy_hyper" });
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:5,代码来源:RegisterTransferNodeParts.java

示例11: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init() {
	MultiPartRegistry.registerConverter(this);
	MultiPartRegistry.registerParts(this, new String[] { "chisel_torch" });
}
 
开发者ID:Chisel-2,项目名称:Chisel-2,代码行数:5,代码来源:FMPCompat.java

示例12: registerPart

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public void registerPart() {
	for (ModPart modPart : ModPartRegistry.parts) {
		MultiPartRegistry.registerParts(new FMPFactory(), new String[]{modPart.getName()});
	}
}
 
开发者ID:modmuss50,项目名称:Network,代码行数:7,代码来源:FMPFactory.java

示例13: newPart

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public TMultiPart newPart(ItemStack item, EntityPlayer player, World world, BlockCoord pos, int side, Vector3 vhit) {
	TMultiPart w = MultiPartRegistry.createPart(modPart.getName(), false);
	return w;
}
 
开发者ID:modmuss50,项目名称:Network,代码行数:6,代码来源:FakeFMPPlacerItem.java

示例14: init

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public void init() {
    MultiPartRegistry.registerParts(new FMP(), new String[]{PalladiumWire.type});
}
 
开发者ID:XeliteXirish,项目名称:Quantum-Energistics-2,代码行数:5,代码来源:FMP.java

示例15: newPart

import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public TMultiPart newPart(ItemStack itemstack, EntityPlayer player, World world, BlockCoord blockCoord, int side, Vector3 vec3)
{
    return MultiPartRegistry.createPart("palladiumWire", false);
}
 
开发者ID:XeliteXirish,项目名称:Quantum-Energistics-2,代码行数:6,代码来源:ItemPartPalladiumWire.java


注:本文中的codechicken.multipart.MultiPartRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。