mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
40 lines
987 B
Java
40 lines
987 B
Java
package com.hbm.entity.mob;
|
|
|
|
import net.minecraft.entity.EntityAgeable;
|
|
import net.minecraft.entity.passive.EntityChicken;
|
|
import net.minecraft.server.MinecraftServer;
|
|
import net.minecraft.util.DamageSource;
|
|
import net.minecraft.world.World;
|
|
|
|
public class EntityDuck extends EntityChicken {
|
|
|
|
public EntityDuck(World world) {
|
|
super(world);
|
|
}
|
|
|
|
protected String getLivingSound() {
|
|
return "hbm:entity.ducc";
|
|
}
|
|
|
|
protected String getHurtSound() {
|
|
return "hbm:entity.ducc";
|
|
}
|
|
|
|
protected String getDeathSound() {
|
|
return "hbm:entity.ducc";
|
|
}
|
|
|
|
public EntityDuck createChild(EntityAgeable entity) {
|
|
return new EntityDuck(this.worldObj);
|
|
}
|
|
|
|
protected void damageEntity(DamageSource p_70665_1_, float p_70665_2_) {
|
|
super.damageEntity(p_70665_1_, p_70665_2_);
|
|
}
|
|
|
|
public void onDeath(DamageSource p_70645_1_) {
|
|
if(!worldObj.isRemote) MinecraftServer.getServer().getConfigurationManager().sendChatMsg(this.func_110142_aN().func_151521_b());
|
|
super.onDeath(p_70645_1_);
|
|
}
|
|
}
|