mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
package com.hbm.items.weapon;
|
|
|
|
import com.hbm.handler.GunConfiguration;
|
|
import com.hbm.render.anim.BusAnimation;
|
|
import com.hbm.render.anim.BusAnimationKeyframe;
|
|
import com.hbm.render.anim.BusAnimationSequence;
|
|
import com.hbm.render.anim.HbmAnimations.AnimType;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class ItemGunCongo extends ItemGunBase {
|
|
|
|
public ItemGunCongo(GunConfiguration config) {
|
|
super(config);
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public BusAnimation getAnimation(ItemStack stack, AnimType type) {
|
|
|
|
if(type == AnimType.CYCLE) {
|
|
return new BusAnimation()
|
|
.addBus("RECOIL", new BusAnimationSequence()
|
|
.addKeyframe(new BusAnimationKeyframe(1, 0, 0, 50))
|
|
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 100)))
|
|
.addBus("PUMP", new BusAnimationSequence()
|
|
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 500))
|
|
.addKeyframe(new BusAnimationKeyframe(1, 0, 0, 100))
|
|
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 200)));
|
|
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|