aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/ItemCasings2.java
blob: b0981c0dc30eb4f43dc3264afae860109324ee06 (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
package gregtech.common.blocks;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;

/**
 * The casings are split into separate files because they are registered as regular blocks, and a regular block can have
 * 16 subtypes at most.
 */
public class ItemCasings2 extends ItemCasingsAbstract {

    public ItemCasings2(Block block) {
        super(block);
    }

    @Override
    public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List<String> aList, boolean aF3_H) {
        super.addInformation(aStack, aPlayer, aList, aF3_H);
        if (getDamage(aStack) == 8) {
            aList.add(this.mBlastProofTooltip);
        }
    }
}