本文整理汇总了Java中me.ichun.mods.ichunutil.common.core.network.PacketChannel类的典型用法代码示例。如果您正苦于以下问题:Java PacketChannel类的具体用法?Java PacketChannel怎么用?Java PacketChannel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PacketChannel类属于me.ichun.mods.ichunutil.common.core.network包,在下文中一共展示了PacketChannel类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: init
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public static void init()
{
if(init)
{
return;
}
init = true;
iChunUtil.config.reveal("maxRecursion", "stencilValue", "renderDistanceChunks", "maxRendersPerTick");
eventHandler = new EventHandlerWorldPortal();
MinecraftForge.EVENT_BUS.register(eventHandler);
WorldPortalsApi.setApiImpl(new ApiImpl());
channel = new PacketChannel("iChun_WorldPortals", PacketEntityLocation.class);
if(FMLCommonHandler.instance().getSide().isClient())
{
initClient();
}
}
开发者ID:iChun,项目名称:iChunUtil,代码行数:23,代码来源:WorldPortals.java
示例2: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInit()
{
WorldPortals.init();
GameRegistry.registerTileEntity(TileEntityGlassMaster.class, "GLASS_TEMaster");
GameRegistry.registerTileEntity(TileEntityGlassBase.class, "GLASS_TEBase");
GameRegistry.registerTileEntity(TileEntityGlassWireless.class, "GLASS_TEWireless");
GameRegistry.registerTileEntity(TileEntityGlassTerminal.class, "GLASS_TETerminal");
GeneralLaymansAestheticSpyingScreen.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(GeneralLaymansAestheticSpyingScreen.eventHandlerServer);
GeneralLaymansAestheticSpyingScreen.channel = new PacketChannel("GLASS", PacketSetChannel.class, PacketSetProjector.class, PacketWirelessOrder.class);
}
开发者ID:iChun,项目名称:GeneralLaymansAestheticSpyingScreen,代码行数:15,代码来源:ProxyCommon.java
示例3: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
proxy.preInitMod();
channel = new PacketChannel(Torched.MOD_NAME, PacketKeyEvent.class);
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
开发者ID:iChun,项目名称:Torched,代码行数:10,代码来源:Torched.java
示例4: preInitMod
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInitMod()
{
MobAmputation.channel = new PacketChannel(MobAmputation.MOD_NAME, PacketDetachLimb.class);
MobAmputation.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(MobAmputation.eventHandlerServer);
}
开发者ID:iChun,项目名称:Mob-Amputation,代码行数:8,代码来源:ProxyCommon.java
示例5: onPreInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
@Mod.EventHandler
public void onPreInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInit();
channel = new PacketChannel(MOD_NAME, PacketBark.class, PacketSpawnParticles.class, PacketKeyState.class);
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
开发者ID:iChun,项目名称:BeeBarker,代码行数:12,代码来源:BeeBarker.java
示例6: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInit()
{
GuiltTrip.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(GuiltTrip.eventHandlerServer);
GuiltTrip.channel = new PacketChannel("GuiltTrip", PacketKills.class);
}
开发者ID:iChun,项目名称:GuiltTrip,代码行数:8,代码来源:ProxyCommon.java
示例7: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInit()
{
ResourceHelper.init();
Keygrip.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(Keygrip.eventHandlerServer);
Keygrip.channel = new PacketChannel("Keygrip", PacketSceneFragment.class, PacketStopScene.class, PacketSceneStatus.class, PacketToggleSleeping.class);
}
开发者ID:iChun,项目名称:Keygrip,代码行数:10,代码来源:ProxyCommon.java
示例8: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInit()
{
GameRegistry.registerTileEntity(TileEntityTabulaRasa.class, "Tabula_TabulaRasa");
Tabula.channel = new PacketChannel(Tabula.MOD_NAME, PacketRequestSession.class, PacketBeginSession.class, PacketEndSession.class, PacketAddListener.class, PacketRemoveListener.class,
PacketChat.class, PacketChatMessage.class, PacketPingAlive.class, PacketIsEditor.class, PacketRequestHeartbeat.class,
PacketHeartbeat.class, PacketProjectFragment.class, PacketCloseProject.class, PacketRequestProject.class, PacketSetCurrentProject.class,
PacketGenericMethod.class, PacketProjectFragmentFromClient.class, PacketClearTexture.class, PacketListenersList.class, PacketSetProjectMetadata.class);
}
开发者ID:iChun,项目名称:Tabula,代码行数:10,代码来源:ProxyCommon.java
示例9: preInit
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInit()
{
EventCalendar.checkDate();
iChunUtil.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(iChunUtil.eventHandlerServer);
EntityRegistry.registerModEntity(new ResourceLocation("ichunutil", "entity_block"), EntityBlock.class, "EntityBlock", 500, iChunUtil.instance, 160, 20, true);
iChunUtil.channel = new PacketChannel(iChunUtil.MOD_ID, PacketSession.class, PacketPatronInfo.class, PacketPatrons.class, PacketUserShouldShowUpdates.class, PacketBlockEntityData.class, PacketNewGrabbedEntityId.class, PacketRequestBlockEntityData.class);
}
开发者ID:iChun,项目名称:iChunUtil,代码行数:12,代码来源:ProxyCommon.java
示例10: preInitMod
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInitMod()
{
getHats();
ProxyCommon.renderHelpers.put(AbstractHorse.class , new HelperHorse());
ProxyCommon.renderHelpers.put(AbstractIllager.class , new HelperIllager());
ProxyCommon.renderHelpers.put(AbstractSkeleton.class , new HelperSkeleton());
ProxyCommon.renderHelpers.put(EntityBat.class , new HelperBat());
ProxyCommon.renderHelpers.put(EntityBlaze.class , new HelperBlaze());
ProxyCommon.renderHelpers.put(EntityChicken.class , new HelperChicken());
ProxyCommon.renderHelpers.put(EntityCow.class , new HelperCow());
ProxyCommon.renderHelpers.put(EntityCreeper.class , new HelperCreeper());
ProxyCommon.renderHelpers.put(EntityEnderman.class , new HelperEnderman());
ProxyCommon.renderHelpers.put(EntityGhast.class , new HelperGhast());
ProxyCommon.renderHelpers.put(EntityGiantZombie.class , new HelperGiantZombie());
ProxyCommon.renderHelpers.put(EntityGuardian.class , new HelperGuardian());
ProxyCommon.renderHelpers.put(EntityLlama.class , new HelperLlama());
ProxyCommon.renderHelpers.put(EntityOcelot.class , new HelperOcelot());
ProxyCommon.renderHelpers.put(EntityPig.class , new HelperPig());
ProxyCommon.renderHelpers.put(EntityPlayer.class , new HelperPlayer());
ProxyCommon.renderHelpers.put(EntityPolarBear.class , new HelperPolarBear());
ProxyCommon.renderHelpers.put(EntityRabbit.class , new HelperRabbit());
ProxyCommon.renderHelpers.put(EntitySheep.class , new HelperSheep());
ProxyCommon.renderHelpers.put(EntityShulker.class , new HelperShulker());
ProxyCommon.renderHelpers.put(EntitySlime.class , new HelperSlime());
ProxyCommon.renderHelpers.put(EntitySpider.class , new HelperSpider());
ProxyCommon.renderHelpers.put(EntitySquid.class , new HelperSquid());
ProxyCommon.renderHelpers.put(EntityVex.class , new HelperVex());
ProxyCommon.renderHelpers.put(EntityVillager.class , new HelperVillager());
ProxyCommon.renderHelpers.put(EntityWither.class , new HelperWither());
ProxyCommon.renderHelpers.put(EntityWolf.class , new HelperWolf());
ProxyCommon.renderHelpers.put(EntityZombie.class , new HelperZombie());
getHatMobModSupport();//Done after initial mapping so that the new JSON can override the mod's vanilla helpers.
Hats.channel = new PacketChannel("Hats",
PacketPlayerHatSelection.class,
PacketRequestHat.class,
PacketPing.class,
PacketString.class,
PacketRequestMobHats.class,
PacketSession.class,
PacketTradeReadyInfo.class,
PacketWornHatList.class,
PacketMobHatsList.class,
PacketKingOfTheHatInfo.class,
PacketTradeOffers.class,
PacketHatFragment.class
);
Hats.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(Hats.eventHandlerServer);
}
开发者ID:iChun,项目名称:Hats,代码行数:55,代码来源:ProxyCommon.java
示例11: preInitMod
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInitMod()
{
GameRegistry.registerTileEntity(TileEntityHatStand.class, "HatStand");
HatStand.channel = new PacketChannel("HatStand", PacketStandHatInfo.class);
}
开发者ID:iChun,项目名称:Hats,代码行数:7,代码来源:ProxyCommon.java
示例12: preInitMod
import me.ichun.mods.ichunutil.common.core.network.PacketChannel; //导入依赖的package包/类
public void preInitMod()
{
(new ThreadReadFiles()).start();
GameRegistry.registerTileEntity(TileEntityInstrumentPlayer.class, "Clef:InstrumentPlayer");
NetworkRegistry.INSTANCE.registerGuiHandler(Clef.instance, new GuiPlayTrackBlockHandler());
ItemHandler.registerDualHandedItem(ItemInstrument.class, new ItemInstrument.DualHandedInstrumentCallback());
Clef.eventHandlerServer = new EventHandlerServer();
MinecraftForge.EVENT_BUS.register(Clef.eventHandlerServer);
Clef.channel = new PacketChannel("Clef", PacketRequestFile.class, PacketFileFragment.class, PacketPlayABC.class, PacketPlayingTracks.class, PacketStopPlayingTrack.class, PacketInstrumentPlayerInfo.class, PacketCreateInstrument.class);
}
开发者ID:iChun,项目名称:Clef,代码行数:16,代码来源:ProxyCommon.java
注:本文中的me.ichun.mods.ichunutil.common.core.network.PacketChannel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论