- 355
- 2
- 17
Добро, поясните кто-нибудь за инициализацию IExtendedEntityProperties
Такая вот ситуация, имеется два класса IExtendedEntityProperties и Characteristics
Лишние методы вырезал, т.к. в ошибке они не фигурируют.
Регистрирую я их в EntityConstructing
И далее ключевой момент, на клиенте данный мод обфусцирован, на сервере нет. И я ловлю ошибку такого плана:
И ниже небольшое пояснение
Он пытается найти не обфусцированный путь с которого якобы ждет CallBack, этот путь пришел с сервера? Пытается собрать игрока на сервере, отправляя некий запрос в S01PacketJoinGame, хотя там ничего подобного даже близко не вижу и при этом клиент определяет этот не обфусцированный путь. Чет ничего не понятно..
Такая вот ситуация, имеется два класса IExtendedEntityProperties и Characteristics
Java:
public class ExtendedProperties
implements IExtendedEntityProperties
{
private EntityPlayer player;
private Characteristics characteristics;
public ExtendedProperties(EntityPlayer player)
{
this.player = player;
this.characteristics = new Characteristics(this);
}
}
Java:
public Characteristics(ExtendedProperties extendedProperties)
{
this.extendedProperties = extendedProperties;
}
Лишние методы вырезал, т.к. в ошибке они не фигурируют.
Регистрирую я их в EntityConstructing
event.entity.registerExtendedProperties("ModIndex", new ExtendedProperties((EntityPlayer) event.entity));
И далее ключевой момент, на клиенте данный мод обфусцирован, на сервере нет. И я ловлю ошибку такого плана:
Java:
[FML]: Exception caught during firing event net.minecraftforge.event.entity.EntityEvent$EntityConstructing@335743ff:
java.lang.NoClassDefFoundError: net/ModIndex/common/data/Characteristics
at m.m.m.s.IIIIIiIIII.<init>(ExtendedProperties.java:44) ~[IIIIIiIIII.class:?]
at m.m.i.s.iiiIiiiiiI.IIiiiiIIiI(EntityConstructingHandler.java:20) ~[iiiIiiiiiI.class:?]
at cpw.mods.fml.common.eventhandler.ASMEventHandler_35_iiiIiiiiiI_IIiiiiIIiI_EntityConstructing.invoke(.dynamic) ~[?:?]
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:2.0-beta9]
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:2.0-beta9]
at net.minecraft.entity.Entity.<init>(Entity.java:179) [sa.class:?]
at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:119) [sv.class:?]
at net.minecraft.entity.player.EntityPlayer.<init>(EntityPlayer.java:141) [yz.class:?]
at net.minecraft.client.entity.AbstractClientPlayer.<init>(AbstractClientPlayer.java:29) [blg.class:?]
at net.minecraft.client.entity.EntityPlayerSP.<init>(EntityPlayerSP.java:79) [blk.class:?]
at net.minecraft.client.entity.EntityClientPlayerMP.<init>(SourceFile:36) [bjk.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.func_147493_a(PlayerControllerMP.java:399) [bje.class:?]
at net.minecraft.client.Minecraft.func_71353_a(Minecraft.java:2328) [bao.class:?]
at net.minecraft.client.Minecraft.func_71403_a(Minecraft.java:2245) [bao.class:?]
at net.minecraft.client.network.NetHandlerPlayClient.func_147282_a(NetHandlerPlayClient.java:240) [bjb.class:?]
at com.mumfrey.liteloader.client.PacketEventsClient.handlePacket(PacketEventsClient.java:106) [PacketEventsClient.class:2.0-beta9]
at com.mumfrey.liteloader.core.PacketEvents.handlePacketEvent(PacketEvents.java:179) [PacketEvents.class:2.0-beta9]
at com.mumfrey.liteloader.core.PacketEvents.handlePacket(PacketEvents.java:134) [PacketEvents.class:2.0-beta9]
at com.mumfrey.liteloader.core.PacketEvents.handlePacket(PacketEvents.java:129) [PacketEvents.class:2.0-beta9]
at com.mumfrey.liteloader.core.event.EventProxy.$event00027(EventProxy.java:250) [EventProxy.class:2.0-beta9]
at net.minecraft.network.play.server.S01PacketJoinGame.func_148833_a(SourceFile) [hd.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]
at net.minecraft.client.multiplayer.GuiConnecting.func_73876_c(SourceFile:78) [bcx.class:?]
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1754) [bao.class:?]
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1041) [bao.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:963) [bao.class:?]
at net.minecraft.client.main.Main.main(Main.java:195) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [minecraft.jar:2.0-beta9]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [minecraft.jar:2.0-beta9]
Caused by: java.lang.ClassNotFoundException: net.ModIndex.common.data.Characteristics
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[minecraft.jar:2.0-beta9]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_73]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_73]
... 33 more
И ниже небольшое пояснение
Java:
You are seeing this message because an event callback was injected by the Event
Injection Subsystem but the specified callback class was not defined! The
details of the missing callback are as follows:
Event Name: ons01packetjoingame
Cancellable: true
Callback class: net.ModIndex.common.data.Characteristics
If you are the mod author then in order to fix the error you must provide an
implementation for the specified class, or check that the class name and package
are correct.
This is an unrecoverable error, please report it to the mod author and remove
the offending mod.
Он пытается найти не обфусцированный путь с которого якобы ждет CallBack, этот путь пришел с сервера? Пытается собрать игрока на сервере, отправляя некий запрос в S01PacketJoinGame, хотя там ничего подобного даже близко не вижу и при этом клиент определяет этот не обфусцированный путь. Чет ничего не понятно..