From 111d2d4df2242db48d9967c225c4472f40e8e303 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sun, 26 Jan 2014 17:14:20 +0000 Subject: [PATCH] Getting started with the mana burst. --- .../common/block/tile/TileSpreader.java | 3 +- .../common/entity/EntityManaBurst.java | 29 +++++++++++++++++++ .../botania/common/entity/ModEntities.java | 16 ++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 MODSRC/vazkii/botania/common/entity/EntityManaBurst.java create mode 100644 MODSRC/vazkii/botania/common/entity/ModEntities.java diff --git a/MODSRC/vazkii/botania/common/block/tile/TileSpreader.java b/MODSRC/vazkii/botania/common/block/tile/TileSpreader.java index fee73f654..0c078926a 100644 --- a/MODSRC/vazkii/botania/common/block/tile/TileSpreader.java +++ b/MODSRC/vazkii/botania/common/block/tile/TileSpreader.java @@ -130,8 +130,7 @@ public class TileSpreader extends TileMod implements IManaCollector { rotationX = 360 - rotationX; } - double angle = y * 180; - + double angle = y * 180; rotationY = (float) angle; PacketDispatcher.sendPacketToAllInDimension(getDescriptionPacket(), worldObj.provider.dimensionId); diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java new file mode 100644 index 000000000..c8ab71edf --- /dev/null +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -0,0 +1,29 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under a + * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License + * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB) + * + * File Created @ [Jan 26, 2014, 5:09:12 PM (GMT)] + */ +package vazkii.botania.common.entity; + +import net.minecraft.entity.projectile.EntityThrowable; +import net.minecraft.util.MovingObjectPosition; +import net.minecraft.world.World; + +public class EntityManaBurst extends EntityThrowable { + + public EntityManaBurst(World par1World) { + super(par1World); + } + + @Override + protected void onImpact(MovingObjectPosition movingobjectposition) { + // TODO + } + +} diff --git a/MODSRC/vazkii/botania/common/entity/ModEntities.java b/MODSRC/vazkii/botania/common/entity/ModEntities.java new file mode 100644 index 000000000..a0d017a55 --- /dev/null +++ b/MODSRC/vazkii/botania/common/entity/ModEntities.java @@ -0,0 +1,16 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under a + * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License + * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB) + * + * File Created @ [Jan 26, 2014, 4:11:03 PM (GMT)] + */ +package vazkii.botania.common.entity; + +public final class ModEntities { + +}