mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Some net stuff for later
This commit is contained in:
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()];
|
||||
|
||||
Reference in new issue
Block a user