mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
33 lines
872 B
Java
33 lines
872 B
Java
package tconstruct.weaponry.entity;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
|
|
public class BoltEntity extends ArrowEntity {
|
|
public BoltEntity(World world) {
|
|
super(world);
|
|
this.setSize(0.3f, 0.3f);
|
|
}
|
|
|
|
public BoltEntity(World world, double d, double d1, double d2) {
|
|
super(world, d, d1, d2);
|
|
this.setSize(0.3f, 0.3f);
|
|
}
|
|
|
|
public BoltEntity(World world, EntityPlayer player, float speed, float accuracy, ItemStack stack) {
|
|
super(world, player, speed, accuracy, stack);
|
|
this.setSize(0.3f, 0.3f);
|
|
}
|
|
|
|
@Override
|
|
protected void playHitBlockSound(int x, int y, int z) {
|
|
this.playSound("random.bowhit", 1.0F, 1.0F);
|
|
}
|
|
|
|
@Override
|
|
protected float armorPenetrationModifier() {
|
|
return 1.5f;
|
|
}
|
|
}
|