use of amerifrance.guideapi.network.PacketSyncEntry in project Guide-API by TeamAmeriFrance.
the class GuiEntry method onGuiClosed.
@Override
public void onGuiClosed() {
super.onGuiClosed();
ResourceLocation key = null;
for (Map.Entry<ResourceLocation, EntryAbstract> mapEntry : category.entries.entrySet()) if (mapEntry.getValue().equals(entry))
key = mapEntry.getKey();
if (key != null)
PacketHandler.INSTANCE.sendToServer(new PacketSyncEntry(book.getCategoryList().indexOf(category), key, pageNumber));
}
Aggregations