
net.minecraft.server.EntityComplexPart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
import org.bukkit.entity.ComplexEntityPart;
import org.jetbrains.annotations.NotNull;
public class EntityComplexPart extends Entity {
public final IComplex owner;
public final String b;
public EntityComplexPart(IComplex icomplex, String s, float f, float f1) {
super(icomplex.a());
this.setSize(f, f1);
this.owner = icomplex;
this.b = s;
}
@NotNull
@Override
public ComplexEntityPart getEntity() {
return (ComplexEntityPart) super.getEntity();
}
protected void h() {
}
protected void a(NBTTagCompound nbttagcompound) {
}
protected void b(NBTTagCompound nbttagcompound) {
}
public boolean ad() {
return true;
}
public boolean damageEntity(DamageSource damagesource, float f) {
return !this.isInvulnerable(damagesource) && this.owner.a(this, damagesource, f);
}
public boolean k(Entity entity) {
return this == entity || this.owner == entity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy