コード例 #1
0
  @Override
  public boolean c(EntityLiving entity) {
    if (this.getRemoteEntity() == null) return super.c(entity);

    if (!(entity.getBukkitEntity() instanceof Player)) return super.c(entity);

    return ((RemoteBaseEntity) this.m_remoteEntity)
            .onInteract((Player) entity.getBukkitEntity(), false)
        && super.c(entity);
  }
コード例 #2
0
 @Override
 public LivingEntity getShooter() {
   return (LivingEntity) shooter.getBukkitEntity();
 }