use of net.minecraft.entity.EntitySize in project Vampirism by TeamLapen.
the class BasicEntityAreaParticleCloud method setHeight.
public void setHeight(float height) {
double d0 = this.getX();
double d1 = this.getY();
double d2 = this.getZ();
this.dimensions = new EntitySize(getRadius() * 2, height, dimensions.fixed);
this.setPos(d0, d1, d2);
if (!this.level.isClientSide) {
this.getEntityData().set(HEIGHT, height);
}
}
use of net.minecraft.entity.EntitySize in project Vampirism by TeamLapen.
the class BasicEntityAreaParticleCloud method setRadius.
public void setRadius(float radius) {
double d0 = this.getX();
double d1 = this.getY();
double d2 = this.getZ();
this.dimensions = new EntitySize(radius * 2.0F, getBbHeight(), dimensions.fixed);
this.setPos(d0, d1, d2);
if (!this.level.isClientSide) {
this.getEntityData().set(RADIUS, radius);
}
}
Aggregations