Initial 1.11.2 update

This commit is contained in:
Electroblob
2018-02-07 21:15:50 +00:00
parent 67f6be0671
commit 3df5597dcc
368 changed files with 17234 additions and 15082 deletions
@@ -11,14 +11,15 @@ import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
/** <b>[Server -> Client]</b> This packet is sent to synchronise any fields that need synchronising in
/**
* <b>[Server -> Client]</b> This packet is sent to synchronise any fields that need synchronising in
* {@link electroblob.wizardry.WizardData WizardData}. This packet is not sent often enough and is too small to warrant
* having separate packets for each field that needs synchronising. */
* having separate packets for each field that needs synchronising.
*/
public class PacketPlayerSync implements IMessageHandler<Message, IMessage> {
@Override
public IMessage onMessage(Message message, MessageContext ctx)
{
public IMessage onMessage(Message message, MessageContext ctx){
// Just to make sure that the side is correct
if(ctx.side.isClient()){
// Using a fully qualified name is a good course of action here; we don't really want to clutter the proxy
@@ -40,7 +41,8 @@ public class PacketPlayerSync implements IMessageHandler<Message, IMessage> {
public int selectedMinionID;
// This constructor is required otherwise you'll get errors (used somewhere in fml through reflection)
public Message() {}
public Message(){
}
public Message(Set<Spell> spellsDiscovered2, int selectedMinionID){
this.spellsDiscovered = spellsDiscovered2;