diff options
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java')
| -rw-r--r-- | src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java b/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java new file mode 100644 index 0000000..68743f7 --- /dev/null +++ b/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java @@ -0,0 +1,41 @@ +package jp.plusplus.fbs.potion;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import jp.plusplus.fbs.render.RendererGameOverlay;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.potion.Potion;
+import net.minecraft.potion.PotionEffect;
+
+/**
+ * Created by plusplus_F on 2016/03/18.
+ */
+public class PotionMagnet extends Potion {
+ public PotionMagnet(int id) {
+ super(id, false, 0x000000);
+ setPotionName("potions.fbs.hailstorm");
+ }
+
+ @Override
+ public void performEffect(EntityLivingBase p_76394_1_, int p_76394_2_) {
+
+ }
+
+ @Override
+ public void affectEntity(EntityLivingBase shooter, EntityLivingBase target, int lv, double effect) {
+
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public boolean hasStatusIcon() {
+ return false;
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void renderInventoryEffect(int x, int y, PotionEffect effect, net.minecraft.client.Minecraft mc) {
+ mc.renderEngine.bindTexture(RendererGameOverlay.icons);
+ mc.currentScreen.drawTexturedModalRect(x+6,y+7, 0, 34, 18, 18);
+ }
+}
|
