summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/potion/PotionCleverness.java
blob: 185cf9e78934a8735fb412e219bb4d64ee790e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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);
    }
}