Initial 1.11.2 update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user