Some net stuff for later

This commit is contained in:
Vincent Lee committed 2016-06-10 19:52:05 -05:00
1 parent 709fc130d5
commit 5ac09b830d
2 files changed
+24

No files matched your search

@@ -14,6 +14,7 @@ import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
import vazkii.botania.client.core.handler.LightningHandler;
import vazkii.botania.common.Botania;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.core.helper.MathHelper;
import vazkii.botania.common.core.helper.Vector3;
import vazkii.botania.common.entity.EntityDoppleganger;
@@ -35,6 +36,10 @@ public class PacketBotaniaEffect implements IMessage {
this.args = args;
}
public PacketBotaniaEffect(EffectType type, double x, double y, double z, double... args) {
this(type, x, y, z, MathHelper.doubleArrayToIntArray(args));
}
@Override
public void fromBytes(ByteBuf buf) {
type = EffectType.values()[buf.readShort()];