From 734fa9d1403ec4362640097b046bab566d89c1c2 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 8 Mar 2019 22:55:52 +0200 Subject: [PATCH] Change the appearance and sound for the changeling ability --- .../unicopia/spell/SpellChangelingTrap.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellChangelingTrap.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellChangelingTrap.java index dea37657..309fd0c4 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellChangelingTrap.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellChangelingTrap.java @@ -1,5 +1,6 @@ package com.minelittlepony.unicopia.spell; +import com.minelittlepony.unicopia.init.USounds; import com.minelittlepony.unicopia.player.IPlayer; import com.minelittlepony.unicopia.player.PlayerSpeciesList; import com.minelittlepony.util.WorldEvent; @@ -8,19 +9,20 @@ import com.minelittlepony.util.vector.VecHelper; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; +import net.minecraft.init.Items; import net.minecraft.init.MobEffects; import net.minecraft.init.SoundEvents; +import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTUtil; import net.minecraft.potion.PotionEffect; import net.minecraft.util.EnumParticleTypes; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class SpellChangelingTrap extends AbstractSpell implements ITossedEffect, IAttachedEffect { - - private BlockPos previousTrappedPosition; private int struggleCounter = 10; @@ -40,6 +42,16 @@ public class SpellChangelingTrap extends AbstractSpell implements ITossedEffect, return false; } + @Override + public SoundEvent getThrowSound(ICaster caster) { + return USounds.SLIME_RETRACT; + } + + @Override + public ItemStack getCastAppearance(ICaster caster) { + return new ItemStack(Items.SLIME_BALL); + } + @Override public boolean updateOnPerson(IPlayer caster) { EntityPlayer entity = caster.getOwner();