mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
27 lines
794 B
Java
27 lines
794 B
Java
package tconstruct.weaponry.entity;
|
|
|
|
import tconstruct.library.entity.ProjectileBase;
|
|
import tconstruct.weaponry.TinkerWeaponry;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
|
|
public class ThrowingKnifeEntity extends ProjectileBase {
|
|
public ThrowingKnifeEntity(World world) {
|
|
super(world);
|
|
}
|
|
|
|
public ThrowingKnifeEntity(World world, double d, double d1, double d2) {
|
|
super(world, d, d1, d2);
|
|
}
|
|
|
|
public ThrowingKnifeEntity(World world, EntityPlayer player, float speed, float accuracy, ItemStack stack) {
|
|
super(world, player, speed, accuracy, stack);
|
|
}
|
|
|
|
@Override
|
|
protected double getStuckDepth() {
|
|
return 0.3d + TinkerWeaponry.random.nextDouble();
|
|
}
|
|
}
|