/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/entity/mob/EntityDuck.java
39 строк
987 B
Bob
tried and failed shader magic
04 сен 2021, 19:20
04 сен 2021, 19:20
7a24c74
Код
Авторство
О чём код?
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_); } }