All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.EntityComplexPart Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
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