提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
213行目: | 213行目: | ||
/*初期化メソッド。今のところ使う必要はない。*/ | /*初期化メソッド。今のところ使う必要はない。*/ | ||
public void init(Entity entity, World world) {} | public void init(Entity entity, World world) {} | ||
+ | |||
+ | /*ServerのIExtendedEntityPropertiesを読み込んで、Clientに送信するメソッド*/ | ||
+ | public void loadProxyData(EntityPlayer player) { | ||
+ | ExtendedPlayerProperties playerData = ExtendedPlayerProperties.get(player); | ||
+ | NBTTagCompound savedData = SampleMod.getEntityData(getSaveKey(player)); | ||
+ | if (savedData != null) { playerData.loadNBTData(savedData); } | ||
+ | PacketHandler.INSTANCE.sendTo(new MessagePlayerProperties(player), (EntityPlayerMP)player); | ||
+ | } | ||
/*以降、各変数のGetterおよびSetter。 | /*以降、各変数のGetterおよびSetter。 |