Search in sources :

Example 6 with EntitySize

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);
    }
}
Also used : EntitySize(net.minecraft.entity.EntitySize)

Example 7 with EntitySize

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);
    }
}
Also used : EntitySize(net.minecraft.entity.EntitySize)

Aggregations

EntitySize (net.minecraft.entity.EntitySize)7 LivingData (com.lying.variousoddities.capabilities.LivingData)1 IMorphCapability (de.budschie.bmorph.capabilities.IMorphCapability)1 MorphEntity (de.budschie.bmorph.entity.MorphEntity)1 UUID (java.util.UUID)1 Nullable (javax.annotation.Nullable)1 Entity (net.minecraft.entity.Entity)1 LivingEntity (net.minecraft.entity.LivingEntity)1 MobEntity (net.minecraft.entity.MobEntity)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 ServerPlayerEntity (net.minecraft.entity.player.ServerPlayerEntity)1 StringTextComponent (net.minecraft.util.text.StringTextComponent)1 OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1