use of de.Keyle.MyPet.api.entity.EntitySize in project MyPet by xXKeyleXx.
the class EntityMyMagmaCube method a.
public net.minecraft.server.v1_16_R1.EntitySize a(EntityPose entitypose) {
EntitySize es = this.getClass().getAnnotation(EntitySize.class);
if (es != null) {
int size = Math.max(1, getMyPet().getSize());
float width = es.width();
float height = java.lang.Float.isNaN(es.height()) ? width : es.height();
return new net.minecraft.server.v1_16_R1.EntitySize(width * size, height * size, false);
}
return super.a(entitypose);
}
use of de.Keyle.MyPet.api.entity.EntitySize in project MyPet by xXKeyleXx.
the class EntityMyPhantom method a.
public net.minecraft.server.v1_16_R1.EntitySize a(EntityPose entitypose) {
EntitySize es = this.getClass().getAnnotation(EntitySize.class);
if (es != null) {
int size = Math.max(1, getMyPet().getSize());
float width = es.width();
float height = java.lang.Float.isNaN(es.height()) ? width : es.height();
return new net.minecraft.server.v1_16_R1.EntitySize(width * size, height * size, false);
}
return super.a(entitypose);
}
use of de.Keyle.MyPet.api.entity.EntitySize in project MyPet by xXKeyleXx.
the class EntityMySlime method a.
@Override
public net.minecraft.server.v1_16_R3.EntitySize a(EntityPose entitypose) {
EntitySize es = this.getClass().getAnnotation(EntitySize.class);
if (es != null) {
int size = Math.max(1, getMyPet().getSize());
float width = es.width();
float height = Float.isNaN(es.height()) ? width : es.height();
return new net.minecraft.server.v1_16_R3.EntitySize(width * size, height * size, false);
}
return super.a(entitypose);
}
use of de.Keyle.MyPet.api.entity.EntitySize in project MyPet by xXKeyleXx.
the class EntityMyMagmaCube method a.
@Override
public net.minecraft.server.v1_16_R3.EntitySize a(EntityPose entitypose) {
EntitySize es = this.getClass().getAnnotation(EntitySize.class);
if (es != null) {
int size = Math.max(1, getMyPet().getSize());
float width = es.width();
float height = Float.isNaN(es.height()) ? width : es.height();
return new net.minecraft.server.v1_16_R3.EntitySize(width * size, height * size, false);
}
return super.a(entitypose);
}
use of de.Keyle.MyPet.api.entity.EntitySize in project MyPet by xXKeyleXx.
the class EntityMyPhantom method a.
@Override
public net.minecraft.server.v1_16_R3.EntitySize a(EntityPose entitypose) {
EntitySize es = this.getClass().getAnnotation(EntitySize.class);
if (es != null) {
int size = Math.max(1, getMyPet().getSize());
float width = es.width();
float height = Float.isNaN(es.height()) ? width : es.height();
return new net.minecraft.server.v1_16_R3.EntitySize(width * size, height * size, false);
}
return super.a(entitypose);
}
Aggregations