mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
62 lines
1.5 KiB
Java
62 lines
1.5 KiB
Java
package com.hbm.entity.mob.glyphid;
|
|
|
|
import com.hbm.main.ResourceManager;
|
|
|
|
import net.minecraft.entity.SharedMonsterAttributes;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import net.minecraft.world.World;
|
|
|
|
public class EntityGlyphidBlaster extends EntityGlyphidBombardier {
|
|
|
|
public EntityGlyphidBlaster(World world) {
|
|
super(world);
|
|
this.setSize(2F, 1.125F);
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getSkin() {
|
|
return ResourceManager.glyphid_blaster_tex;
|
|
}
|
|
|
|
@Override
|
|
public double getScale() {
|
|
return 1.25D;
|
|
}
|
|
|
|
@Override
|
|
protected void applyEntityAttributes() {
|
|
super.applyEntityAttributes();
|
|
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(GlyphidStats.getStats().getBlaster().health);
|
|
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(GlyphidStats.getStats().getBlaster().speed);
|
|
this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(GlyphidStats.getStats().getBlaster().damage);
|
|
}
|
|
|
|
@Override public int getDivisorPerArmorPoint() { return GlyphidStats.getStats().getBlaster().divisor; }
|
|
@Override public float getDamageThreshold() { return GlyphidStats.getStats().getBlaster().damageThreshold; }
|
|
|
|
@Override
|
|
public boolean isArmorBroken(float amount) {
|
|
return this.rand.nextInt(100) <= Math.min(Math.pow(amount * 0.25, 2), 100);
|
|
}
|
|
|
|
@Override
|
|
public float getBombDamage() {
|
|
return 15F;
|
|
}
|
|
|
|
@Override
|
|
public int getBombCount() {
|
|
return 10;
|
|
}
|
|
|
|
@Override
|
|
public float getSpreadMult() {
|
|
return 0.5F;
|
|
}
|
|
|
|
@Override
|
|
public double getV0() {
|
|
return 1.25D;
|
|
}
|
|
}
|