mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -5,31 +5,31 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityMagicProjectile extends EntityProjectile{
|
||||
private EntityPlayer player;
|
||||
private ItemStack equiped;
|
||||
public class EntityMagicProjectile extends EntityProjectile {
|
||||
private EntityPlayer player;
|
||||
private ItemStack equiped;
|
||||
|
||||
public EntityMagicProjectile(World par1World){
|
||||
super(par1World);
|
||||
}
|
||||
public EntityMagicProjectile(World par1World) {
|
||||
super(par1World);
|
||||
}
|
||||
|
||||
public EntityMagicProjectile(World par1World,
|
||||
EntityPlayer player, ItemStack item, boolean isNPC) {
|
||||
super(par1World, player, item, isNPC);
|
||||
public EntityMagicProjectile(World par1World,
|
||||
EntityPlayer player, ItemStack item, boolean isNPC) {
|
||||
super(par1World, player, item, isNPC);
|
||||
|
||||
this.player = player;
|
||||
this.equiped = player.inventory.getCurrentItem();
|
||||
}
|
||||
this.player = player;
|
||||
this.equiped = player.inventory.getCurrentItem();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate(){
|
||||
if(!worldObj.isRemote && (player == null || player.inventory.getCurrentItem() != equiped))
|
||||
this.setDead();
|
||||
super.onUpdate();
|
||||
}
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
if (!worldObj.isRemote && (player == null || player.inventory.getCurrentItem() != equiped))
|
||||
this.setDead();
|
||||
super.onUpdate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommandSenderName(){
|
||||
return StatCollector.translateToLocal("entity.throwableitem.name");
|
||||
}
|
||||
@Override
|
||||
public String getCommandSenderName() {
|
||||
return StatCollector.translateToLocal("entity.throwableitem.name");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user