summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/potion
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-08-24 08:16:37 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-08-24 08:16:37 -0400
commit70c1354a4a96698758a88c032866288f79de6f5a (patch)
treeeca51294e84b90a4cb3230bc2c7900469e784184 /src/main/java/jp/plusplus/fbs/potion
Initial commitHEADtrunk
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/potion')
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionCleverness.classbin0 -> 1989 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionCleverness.java42
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionContract.classbin0 -> 1980 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionContract.java43
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.classbin0 -> 1978 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.java41
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionMagnet.classbin0 -> 1969 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/potion/PotionMagnet.java41
8 files changed, 167 insertions, 0 deletions
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.class b/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.class
new file mode 100644
index 0000000..24d9048
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.java b/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.java
new file mode 100644
index 0000000..185cf9e
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.java
@@ -0,0 +1,42 @@
+package jp.plusplus.fbs.potion;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import jp.plusplus.fbs.FBS;
+import jp.plusplus.fbs.render.RendererGameOverlay;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.potion.Potion;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.util.ResourceLocation;
+
+/**
+ * Created by plusplus_F on 2015/11/09.
+ */
+public class PotionCleverness extends Potion {
+ public PotionCleverness(int id) {
+ super(id, false, 0xbb00bb);
+ setPotionName("potions.fbs.cleverness");
+ }
+
+ @Override
+ public void performEffect(EntityLivingBase p_76394_1_, int p_76394_2_) {
+
+ }
+
+ @Override
+ public void affectEntity(EntityLivingBase shooter, EntityLivingBase target, int lv, double effect) {
+
+ }
+
+ @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, 18, 16, 18, 18);
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionContract.class b/src/main/java/jp/plusplus/fbs/potion/PotionContract.class
new file mode 100644
index 0000000..701929c
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionContract.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionContract.java b/src/main/java/jp/plusplus/fbs/potion/PotionContract.java
new file mode 100644
index 0000000..601c50a
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionContract.java
@@ -0,0 +1,43 @@
+package jp.plusplus.fbs.potion;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import jp.plusplus.fbs.FBS;
+import jp.plusplus.fbs.render.RendererGameOverlay;
+import net.minecraft.client.renderer.InventoryEffectRenderer;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.potion.Potion;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.util.ResourceLocation;
+
+/**
+ * Created by plusplus_F on 2015/11/09.
+ */
+public class PotionContract extends Potion {
+ public PotionContract(int id) {
+ super(id, false, 0xffffff);
+ setPotionName("potions.fbs.contract");
+ }
+
+ @Override
+ public void performEffect(EntityLivingBase p_76394_1_, int p_76394_2_) {
+
+ }
+
+ @Override
+ public void affectEntity(EntityLivingBase shooter, EntityLivingBase target, int lv, double effect) {
+
+ }
+
+ @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, 16, 18, 18);
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.class b/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.class
new file mode 100644
index 0000000..a49485e
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.java b/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.java
new file mode 100644
index 0000000..ca9fd4b
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionHailstorm.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 PotionHailstorm extends Potion {
+ public PotionHailstorm(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);
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.class b/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.class
new file mode 100644
index 0000000..35b1853
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/potion/PotionMagnet.class
Binary files differ
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);
+ }
+}