mirror of
https://github.com/ACGaming/Spackenmobs
synced 2024-06-09 22:19:14 +02:00
Implement MZTEWolf ambient sound
This commit is contained in:
parent
8f9af57e7c
commit
82537fe2f8
|
@ -2,6 +2,7 @@ package mod.acgaming.spackenmobs.entities;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
import mod.acgaming.spackenmobs.misc.ModSoundEvents;
|
||||
import net.minecraft.entity.EntityAgeable;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
|
@ -10,6 +11,7 @@ import net.minecraft.entity.passive.AbstractHorse;
|
|||
import net.minecraft.entity.passive.EntityAnimal;
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.SoundEvent;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityMZTEWolf extends EntityWolf
|
||||
|
@ -21,6 +23,12 @@ public class EntityMZTEWolf extends EntityWolf
|
|||
this.setTamed(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEvent getAmbientSound()
|
||||
{
|
||||
return ModSoundEvents.ENTITY_MZTEWOLF_AMBIENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityMZTEWolf createChild(EntityAgeable ageable)
|
||||
{
|
||||
|
|
|
@ -57,5 +57,5 @@ public class ModSoundEvents
|
|||
public static final SoundEvent ENTITY_GISELA_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.gisela.ambient"));
|
||||
public static final SoundEvent ENTITY_GISELA_HURT = new SoundEvent(new ResourceLocation("spackenmobs:entities.gisela.hurt"));
|
||||
|
||||
public static final SoundEvent ENTITY_MZTEWOLF_AMBIENT = new SoundEvent(new ResourceLocation("entities.mztewolf.ambient"));
|
||||
public static final SoundEvent ENTITY_MZTEWOLF_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.mztewolf.ambient"));
|
||||
}
|
Loading…
Reference in a new issue