19 lines
562 B
Java
19 lines
562 B
Java
package net.minecraft.world.item;
|
|
|
|
import net.minecraft.world.entity.projectile.Arrow;
|
|
import net.minecraft.world.entity.projectile.AbstractArrow;
|
|
import net.minecraft.world.entity.LivingEntity;
|
|
import net.minecraft.world.level.Level;
|
|
|
|
public class ArrowItem extends Item {
|
|
public ArrowItem(final Properties a) {
|
|
super(a);
|
|
}
|
|
|
|
public AbstractArrow createArrow(final Level bjt, final ItemStack bek, final LivingEntity akw) {
|
|
final Arrow aym5 = new Arrow(bjt, akw);
|
|
aym5.setEffectsFromItem(bek);
|
|
return aym5;
|
|
}
|
|
}
|