本文整理汇总了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");
}
示例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);
}
示例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 });
}
示例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();
}
示例5: init
import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init()
{
MultiPartRegistry.registerConverter(this);
MultiPartRegistry.registerParts(new ModParts(), new String[] {
PartRotaryShaft.type
});
}
示例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());
}
示例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);
}
示例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());
}
示例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" });
}
示例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" });
}
示例11: init
import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
public void init() {
MultiPartRegistry.registerConverter(this);
MultiPartRegistry.registerParts(this, new String[] { "chisel_torch" });
}
示例12: registerPart
import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public void registerPart() {
for (ModPart modPart : ModPartRegistry.parts) {
MultiPartRegistry.registerParts(new FMPFactory(), new String[]{modPart.getName()});
}
}
示例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;
}
示例14: init
import codechicken.multipart.MultiPartRegistry; //导入依赖的package包/类
@Override
public void init() {
MultiPartRegistry.registerParts(new FMP(), new String[]{PalladiumWire.type});
}
示例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);
}