mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
31 lines
616 B
Java
31 lines
616 B
Java
package com.hbm.entity.effect;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
public class EntityVortex extends EntityBlackHole {
|
|
|
|
public EntityVortex(World p_i1582_1_) {
|
|
super(p_i1582_1_);
|
|
this.ignoreFrustumCheck = true;
|
|
this.isImmuneToFire = true;
|
|
}
|
|
|
|
public EntityVortex(World world, float size) {
|
|
super(world);
|
|
this.dataWatcher.updateObject(16, size);
|
|
}
|
|
|
|
@Override
|
|
public void onUpdate() {
|
|
|
|
this.dataWatcher.updateObject(16, this.dataWatcher.getWatchableObjectFloat(16) - 0.0025F);
|
|
if(this.dataWatcher.getWatchableObjectFloat(16) <= 0) {
|
|
this.setDead();
|
|
return;
|
|
}
|
|
|
|
super.onUpdate();
|
|
}
|
|
|
|
}
|