GT5-Unofficial/main/java/gregtech/common/tools/GT_Tool_Turbine.java
Blood-Asp 1209f95bc2 update 5.08.13
Turbine items and achievements
2015-05-16 02:51:56 +02:00

25 lines
1.3 KiB
Java

package gregtech.common.tools;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.items.GT_MetaGenerated_Tool;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IChatComponent;
public abstract class GT_Tool_Turbine extends GT_Tool{
public abstract float getBaseDamage();
@Override public boolean isMinableBlock(Block aBlock, byte aMetaData) {return false;}
@Override public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) {return aIsToolHead ? Textures.ItemIcons.TURBINE : null;}
@Override public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) {return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;}
public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
{
return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " put " + EnumChatFormatting.RED +
aEntity.getCommandSenderName()+"s" + EnumChatFormatting.WHITE + " head into a turbine");
}
public abstract float getSpeedMultiplier();
public abstract float getMaxDurabilityMultiplier();
}